Skip to content

Commit

Permalink
poweradimn dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
suhancz committed May 29, 2024
1 parent 7a78d1e commit b378f6d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@
enabled: yes
state: restarted
loop:
- php72-php-fpm
- php74-php-fpm
# - php81-php-fpm
loop_control:
loop_var: php_fpm_service
- name: Restart postfix
Expand Down
2 changes: 1 addition & 1 deletion tasks/dns/poweradmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- name: Parse version
ansible.builtin.set_fact:
# poweradmin_version: "{{ poweradmin_download_site.url | replace('https://github.com/poweradmin/poweradmin/releases/tag/v','') }}"
poweradmin_version: 3.4.2 # enforcing PowerAdmin with a verion which supports PHP 7 to avoid package clash with other packages
poweradmin_version: 3.4.2 # enforcing PowerAdmin with a version which supports PHP 7 to avoid package clash with other packages
- name: Unpack PowerAdmin
tags:
- dyndns
Expand Down
2 changes: 1 addition & 1 deletion tasks/kolab/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
loop:
- /etc/php.ini
- /etc/opt/remi/php72/php.ini
notify:
notify:
- Restart httpd

- name: Configure kolab.conf
Expand Down
33 changes: 20 additions & 13 deletions tasks/os/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,23 +237,23 @@
state: present
backup: yes
create: yes
- name: Enable the php:remi-7.4 DNF module
- name: Enable the php:remi-7.2 DNF module
tags:
- always
block:
- name: Enable the php:remi-7.4 DNF module
ansible.builtin.command: dnf module enable php:remi-7.4 -y
register: enable_php74_module
changed_when: enable_php74_module.rc == 0
- name: Enable the php:remi-7.2 DNF module
ansible.builtin.command: dnf module enable php:remi-7.2 -y
register: enable_php72_module
changed_when: enable_php72_module.rc == 0
rescue:
- name: Reset the php DNF module
ansible.builtin.command: dnf module reset php -y
register: enable_php74_module
changed_when: enable_php74_module.rc == 0
- name: Enable the php:remi-7.4 DNF module
ansible.builtin.command: dnf module enable php:remi-7.4 -y
register: enable_php74_module
changed_when: enable_php74_module.rc == 0
register: reset_php_module
changed_when: reset_php_module.rc == 0
- name: Enable the php:remi-7.2 DNF module
ansible.builtin.command: dnf module enable php:remi-7.2 -y
register: enable_php72_module
changed_when: enable_php72_module.rc == 0
- name: Install packages
tags:
- always
Expand Down Expand Up @@ -397,11 +397,11 @@
- aide
- kolab
- php-kolabformat
- php74-php-fpm
- php72-php-fpm
- libkolabxml
- libkolab
- php-kolab
- php74-php-pecl-memcache
- php72-php-pecl-memcache
- sssd
- sssd-ldap
- oddjob-mkhomedir
Expand All @@ -412,6 +412,13 @@
- openldap-servers
- nss-pam-ldapd
state: latest # noqa package-latest I do prefer fresh stuff ;)
- name: Install packages for PowerAdmin
tags:
- poweradmin
ansible.builtin.package:
name:
- php74-php-fpm
state: latest # noqa package-latest I do prefer fresh stuff ;)
# - name: Reset the PHP DNF module
# ansible.builtin.command: dnf module reset php -y
# tags:
Expand Down

0 comments on commit b378f6d

Please sign in to comment.