diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-17 19:32:27 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-17 19:32:27 +0100 |
commit | aea89a9f4dc3548d0295b0fd513c5c9b08207ffa (patch) | |
tree | f0e26ed720007980be7a2e61e3368c4c182f6fbe | |
parent | f4ee05f46e2cbe1865ad42dd765e271439aced42 (diff) |
updated setup_fastd.yml
added features:
- configure systemd-journald
- install haveged
- install ntp
-rw-r--r-- | roles/configure_journald/tasks/main.yml | 13 | ||||
-rw-r--r-- | roles/install_haveged/tasks/main.yml | 12 | ||||
-rw-r--r-- | roles/install_ntp/tasks/main.yml | 12 | ||||
-rw-r--r-- | setup_fastd.yml | 3 |
4 files changed, 40 insertions, 0 deletions
diff --git a/roles/configure_journald/tasks/main.yml b/roles/configure_journald/tasks/main.yml new file mode 100644 index 0000000..6742a9c --- /dev/null +++ b/roles/configure_journald/tasks/main.yml @@ -0,0 +1,13 @@ +--- +- name: log to ramdisk + lineinfile: + path: /etc/systemd/journald.conf + regexp: '^#?Storage=' + line: 'Storage=volatile' + register: journald_conf + +- name: restart systemd-journald + when: journald_conf.changed + systemd: + name: systemd-journald.service + state: restarted diff --git a/roles/install_haveged/tasks/main.yml b/roles/install_haveged/tasks/main.yml new file mode 100644 index 0000000..df67c8d --- /dev/null +++ b/roles/install_haveged/tasks/main.yml @@ -0,0 +1,12 @@ +--- +- name: install haveged + pacman: + update_cache: yes + name: haveged + state: present + +- name: enable haveged at boot and start it + systemd: + name: haveged.service + enabled: yes + state: started diff --git a/roles/install_ntp/tasks/main.yml b/roles/install_ntp/tasks/main.yml new file mode 100644 index 0000000..3a6f6f0 --- /dev/null +++ b/roles/install_ntp/tasks/main.yml @@ -0,0 +1,12 @@ +--- +- name: install ntp + pacman: + update_cache: yes + name: ntp + state: present + +- name: enable ntp at boot and start it + systemd: + name: ntpd.service + enabled: yes + state: started diff --git a/setup_fastd.yml b/setup_fastd.yml index 238b257..7677826 100644 --- a/setup_fastd.yml +++ b/setup_fastd.yml @@ -4,4 +4,7 @@ user: root roles: - install_yaourt + - configure_journald + - install_ntp + - install_haveged - install_admin_packages |