diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-10-03 15:31:49 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-10-03 20:22:43 +0200 |
commit | d73f54e7e56f689fa3dc69e5a54f078c9680c337 (patch) | |
tree | 303a4c56e9be6d69b1e3be85ab253ac572d07e95 /roles/debian/tasks/systemd.yml | |
parent | 0531f80caf457831408367aaaedcc0446c00cdff (diff) | |
download | labitat-ansible-d73f54e7e56f689fa3dc69e5a54f078c9680c337.tar.gz labitat-ansible-d73f54e7e56f689fa3dc69e5a54f078c9680c337.tar.xz labitat-ansible-d73f54e7e56f689fa3dc69e5a54f078c9680c337.zip |
debian: add basic Debian role
Diffstat (limited to 'roles/debian/tasks/systemd.yml')
-rw-r--r-- | roles/debian/tasks/systemd.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/roles/debian/tasks/systemd.yml b/roles/debian/tasks/systemd.yml new file mode 100644 index 0000000..56a5898 --- /dev/null +++ b/roles/debian/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: |