diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-16 12:18:12 -0600 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-16 12:18:12 -0600 |
| commit | 817b789bb54b922d7fc983464fd31beeb4deb1dc (patch) | |
| tree | 3c6402654f2d47185ac03e717305e36db5125fa7 /salt/openbook/ansible/files/haveged.yaml | |
| parent | 10a5455b198d9b529dd30a55165e4136a6816277 (diff) | |
solve /dev/random locking; add cluster.interfaces to force ens3
Diffstat (limited to 'salt/openbook/ansible/files/haveged.yaml')
| -rw-r--r-- | salt/openbook/ansible/files/haveged.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/salt/openbook/ansible/files/haveged.yaml b/salt/openbook/ansible/files/haveged.yaml new file mode 100644 index 0000000..11b2371 --- /dev/null +++ b/salt/openbook/ansible/files/haveged.yaml @@ -0,0 +1,36 @@ +--- +- name: "Install haveged" + hosts: target + tasks: + - name: "Install haveged package" + apt: + pkg: "{{ item }}" + state: present + with_items: + - haveged + when: ansible_distribution == "Ubuntu" + + - name: "Install haveged package" + yum: + name: "{{ item }}" + state: present + with_items: + - haveged + when: ansible_distribution == "RedHat" or ansible_distribution == "CentOS" + + - name: "Install haveged package" + portage: + name: "{{ item }}" + state: present + with_items: + - sys-apps/haveged + when: ansible_distribution == "Gentoo" + + - name: "Enable haveged" + service: + name: "{{ item.name }}" + enabled: yes + state: started + runlevel: "{{ item.runlevel }}" + with_items: + - { name: haveged, runlevel: default } |
