Skip to content

Commit

Permalink
fix FQDN
Browse files Browse the repository at this point in the history
  • Loading branch information
suhancz committed May 29, 2024
1 parent 3e56cf9 commit 7a78d1e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tasks/kolab/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# noqa yaml[line-length]
ansible.builtin.command: "setup-kolab --default --timezone={{ ansible_date_time.tz }} \
--mysqlserver=existing --mysqlhost=127.0.0.1 --mysqlrootpw={{ mysql_root_password }} \
--directory-manager-pwd={{ ldap_admin_password }} --fqdn={{ mailserver_domain }} \
--directory-manager-pwd={{ ldap_admin_password }} --fqdn={{ mailserver_hostname }}.{{ mailserver_domain }} \
--domain={{ mailserver_domain }}"
register: kolab_setup
failed_when: kolab_setup.rc != 0 and "existing" not in kolab_setup.stderr
Expand Down
17 changes: 14 additions & 3 deletions tasks/os/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,20 @@
- name: Enable the php:remi-7.4 DNF module
tags:
- always
ansible.builtin.command: dnf module enable php:remi-7.4 -y
register: enable_php74_module
changed_when: enable_php74_module.rc == 0
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
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
- name: Install packages
tags:
- always
Expand Down

0 comments on commit 7a78d1e

Please sign in to comment.