summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2019-01-25 14:32:35 +0100
committerMatthieu Saulnier <fantom@fedoraproject.org>2019-01-25 14:32:35 +0100
commitca78ae9bdf2a1b25e7182096f9b1c5a1380daf21 (patch)
tree726a4ba12dc5dbd74a2ab54e068b3cc60b84a819 /playbooks
parent393d0e74dd73de3ee8820379af1a2a29c62b7342 (diff)
downloadplaybooks-ansible-ca78ae9bdf2a1b25e7182096f9b1c5a1380daf21.tar.gz
playbooks-ansible-ca78ae9bdf2a1b25e7182096f9b1c5a1380daf21.tar.xz
playbooks-ansible-ca78ae9bdf2a1b25e7182096f9b1c5a1380daf21.zip
Remove update role since it is not working
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/update.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/playbooks/update.yml b/playbooks/update.yml
new file mode 100644
index 0000000..f64571e
--- /dev/null
+++ b/playbooks/update.yml
@@ -0,0 +1,61 @@
+---
+- hosts:
+ - dns
+ - proxy
+ remote_user: root
+ tasks:
+ - include_vars: .jabbersecrets
+
+ - name: Mise à jour système avec yum
+ at:
+ command: /usr/bin/yum -y update
+ count: 5
+ units: minutes
+ unique: yes
+ when: ansible_pkg_mgr == "yum"
+
+ - name: Mise à jour système avec dnf
+ at:
+ command: /usr/bin/dnf -y update
+ count: 5
+ units: minutes
+ unique: yes
+ when: ansible_pkg_mgr == "dnf"
+
+ - jabber:
+ user: "{{ jabberuserid }}"
+ password: "{{ jabberuserpwd }}"
+ to: "{{ jabberroom }}"
+ msg: Casper, TASK [Mise à jour système programmée dans 5 min] ******
+
+
+ - name: reboot auto
+ at:
+ command: /usr/sbin/reboot
+ count: 1
+ units: hours
+ unique: yes
+ tags: reboot
+
+ - jabber:
+ user: "{{ jabberuserid }}"
+ password: "{{ jabberuserpwd }}"
+ to: "{{ jabberroom }}"
+ msg: Casper, TASK [Reboot système programmé dans 1 heure] ******
+ tags: reboot
+
+
+ - name: rkhunter internal database update
+ at:
+ command: /usr/bin/rkhunter --propupd
+ count: 50
+ units: minutes
+ unique: yes
+ when: ansible_virtualization_role == "NA" or ansible_virtualization_role == "host"
+
+ - jabber:
+ user: "{{ jabberuserid }}"
+ password: "{{ jabberuserpwd }}"
+ to: "{{ jabberroom }}"
+ msg: Casper, TASK [Mise à jour rkhunter programmée dans 50 min] ******
+ when: ansible_virtualization_role == "NA" or ansible_virtualization_role == "host"