Conf Xivo + ajustement update && upgrade
[ansible.git] / paris / clients / roles / mise-a-jour / tasks / main.yml
CommitLineData
6e3a21df 1- name: nombre users connectes
2 shell: "who | wc -l"
3 register: vuser
6e3a21df 4
5- name: temps allumage machine
6 shell: "cat /proc/uptime | awk '{print $1}'"
7 register: vtime
251824b1
AD
8
9- name: ajout key owncloud
10 apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:desktop/xUbuntu_12.04/Release.key state=present
11 when: vuser.stdout|int == 1
6e3a21df 12
7344afdb
AD
13#- name: mise a jour update && upgrade
14# shell: "aptitude update && apt-get upgrade -y --force-yes"
15# when: vuser.stdout|int == 1
4deb3b23 16
251824b1 17- name: mise a jour update upgrade deuxieme passage
4deb3b23
AD
18 apt: update_cache=yes upgrade=dist
19 when: vuser.stdout|int == 1
251824b1 20
7344afdb
AD
21- name: Ajout de umask 002 dans /etc/profile
22 lineinfile: dest=/etc/profile regexp=^umask line='umask 002'
251824b1 23 when: vuser.stdout|int == 1
6e3a21df 24
25- name: extinction ordinateur
26 shell: "poweroff"
27 when: vuser.stdout|int == 1
28
29#- name: warning user
30