diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-10-06 22:56:32 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-11-11 11:24:34 +0100 |
commit | 2df419d71028a4f699a98d897439b89e15f4e72a (patch) | |
tree | 0917b0f6582bf26d4eecb029a0660834e4adef2e /roles/fedora/tasks/systemd.yml | |
parent | 18a6c64179d45e94466f0598a49ea34fe23fe3eb (diff) | |
download | labitat-ansible-2df419d71028a4f699a98d897439b89e15f4e72a.tar.gz labitat-ansible-2df419d71028a4f699a98d897439b89e15f4e72a.tar.xz labitat-ansible-2df419d71028a4f699a98d897439b89e15f4e72a.zip |
fedora: align with debian role
Diffstat (limited to 'roles/fedora/tasks/systemd.yml')
-rw-r--r-- | roles/fedora/tasks/systemd.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/roles/fedora/tasks/systemd.yml b/roles/fedora/tasks/systemd.yml new file mode 100644 index 0000000..56a5898 --- /dev/null +++ b/roles/fedora/tasks/systemd.yml @@ -0,0 +1,32 @@ +--- +- name: Configure systemd system.conf + ini_file: + path: '/etc/systemd/system.conf' + no_extra_spaces: yes + section: "{{ item.key.split('.',1)[0] }}" + option: "{{ item.key.split('.',1)[1] }}" + value: "{{ item.value|ternary(item.value,omit) }}" + state: "{{ item.value|ternary('present','absent') }}" + with_dict: '{{ systemd_conf }}' + +- name: Configure journald.conf + ini_file: + path: '/etc/systemd/journald.conf' + no_extra_spaces: yes + section: "{{ item.key.split('.',1)[0] }}" + option: "{{ item.key.split('.',1)[1] }}" + value: "{{ item.value|ternary(item.value,omit) }}" + state: "{{ item.value|ternary('present','absent') }}" + with_dict: '{{ journald_conf }}' + +- name: Configure logind.conf + ini_file: + path: '/etc/systemd/logind.conf' + no_extra_spaces: yes + section: "{{ item.key.split('.',1)[0] }}" + option: "{{ item.key.split('.',1)[1] }}" + value: "{{ item.value|ternary(item.value,omit) }}" + state: "{{ item.value|ternary('present','absent') }}" + with_dict: '{{ logind_conf }}' + +# vim: set ts=2 sw=2 et: |