summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/logo.yml
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2018-12-23 22:58:15 +0100
committerMatthieu Saulnier <fantom@fedoraproject.org>2018-12-23 22:58:15 +0100
commit6ed28366124713afb588ad96b7040fbe0841a32d (patch)
tree369ab7dfa7f65defcfb4b2f73c9f1400a7199adc /roles/common/tasks/logo.yml
parentfa730c80e464dc136ca0d64bf50a61d1b7e24c00 (diff)
downloadplaybooks-ansible-6ed28366124713afb588ad96b7040fbe0841a32d.tar.gz
playbooks-ansible-6ed28366124713afb588ad96b7040fbe0841a32d.tar.xz
playbooks-ansible-6ed28366124713afb588ad96b7040fbe0841a32d.zip
Update ini_file module syntax
Diffstat (limited to 'roles/common/tasks/logo.yml')
-rw-r--r--roles/common/tasks/logo.yml34
1 files changed, 20 insertions, 14 deletions
diff --git a/roles/common/tasks/logo.yml b/roles/common/tasks/logo.yml
index 98c6a98..c6de332 100644
--- a/roles/common/tasks/logo.yml
+++ b/roles/common/tasks/logo.yml
@@ -1,13 +1,17 @@
- name: Retrait linux_logo en Exclude (yum)
- ini_file: dest=/etc/yum.conf
- section=main
- option=exclude
+ ini_file:
+ path: /etc/yum.conf
+ section: main
+ option: exclude
+ state: absent
when: ansible_pkg_mgr == "yum"
- name: Retrait linux_logo en Exclude (dnf)
- ini_file: dest=/etc/dnf/dnf.conf
- section=main
- option=exclude
+ ini_file:
+ path: /etc/dnf/dnf.conf
+ section: main
+ option: exclude
+ state: absent
when: ansible_pkg_mgr == "dnf"
- name: Installation linux_logo Fedora x86_64
@@ -25,15 +29,17 @@
and ansible_architecture == "armv7l"
- name: Ajout linux_logo en Exclude (yum)
- ini_file: dest=/etc/yum.conf
- section=main
- option=exclude
- value=linux_logo
+ ini_file:
+ path: /etc/yum.conf
+ section: main
+ option: exclude
+ value: linux_logo
when: ansible_pkg_mgr == "yum"
- name: Ajout linux_logo en Exclude (dnf)
- ini_file: dest=/etc/dnf/dnf.conf
- section=main
- option=exclude
- value=linux_logo
+ ini_file:
+ path: /etc/dnf/dnf.conf
+ section: main
+ option: exclude
+ value: linux_logo
when: ansible_pkg_mgr == "dnf"