Added reboot playbook
This commit is contained in:
parent
6ad990a713
commit
c0abfcd9a9
@ -3,11 +3,7 @@
|
||||
hosts: all
|
||||
roles:
|
||||
- common
|
||||
remote_user: vlad
|
||||
become: yes
|
||||
vars:
|
||||
run: false
|
||||
reboot: false
|
||||
|
||||
tasks:
|
||||
|
||||
@ -30,7 +26,7 @@
|
||||
shell: "ifconfig"
|
||||
register: my_interfaces
|
||||
|
||||
- name: Print MOTD information
|
||||
- name: Print interface information
|
||||
debug:
|
||||
var: my_interfaces.stdout_lines
|
||||
verbosity: 0
|
||||
|
||||
13
home_linux/reboot.yml
Normal file
13
home_linux/reboot.yml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: Reboot the Raspberries
|
||||
hosts: all
|
||||
roles:
|
||||
- common
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Rebooting...
|
||||
reboot:
|
||||
msg: "Reboot initiated by Ansible"
|
||||
test_command: uptime
|
||||
@ -1,10 +1,10 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
31666463666365373361376466353930626265313734613733373563633666626164623631306164
|
||||
3561636664356439316164316535346430333563323530650a323735643862393664663064363936
|
||||
38336566356333393131376330663361666365376336616163333762663235346366303338303233
|
||||
3339666266376130610a356538616431303836366363616232626430616439343035633539373130
|
||||
33666336616365333139353466613730663565383862346166393433366632616234646330336133
|
||||
30626535653264653639613962346165626461383439616232613166343431636263396261613830
|
||||
38636534383936363261643362646234663463346435353430396564356162303135353266353237
|
||||
31393664376564646632636165663433356262663564666338656431313631333938373038316464
|
||||
3939
|
||||
34323466633533666237623830316138373237326134336236613536633664373564633163613230
|
||||
3938393338663632613061646365613630373635613536360a613039306363616432633030306334
|
||||
33353839346339393965616234323561306338626533363238306662383938626364303061633332
|
||||
6230623361393438610a383230376431373034306331376536313831633366373665393866373338
|
||||
65313334623131323931353436623265623033396266623364313934383865386532623630336164
|
||||
32653432613065303363303730353864353739633530376637333662303134613339353062303932
|
||||
33646466383561373264333734626364663763393766666664653365386230393562626563376265
|
||||
63303939363932636266303566363062643166343064343762313339353839326361383062653036
|
||||
6232
|
||||
|
||||
0
ios_devices/roles/common/files
Normal file
0
ios_devices/roles/common/files
Normal file
0
ios_devices/roles/common/handlers
Normal file
0
ios_devices/roles/common/handlers
Normal file
0
ios_devices/roles/common/meta
Normal file
0
ios_devices/roles/common/meta
Normal file
0
ios_devices/roles/common/tasks
Normal file
0
ios_devices/roles/common/tasks
Normal file
0
ios_devices/roles/common/tempaltes
Normal file
0
ios_devices/roles/common/tempaltes
Normal file
0
ios_devices/roles/common/vars
Normal file
0
ios_devices/roles/common/vars
Normal file
Loading…
Reference in New Issue
Block a user