Diabled Cows, Added full inventory, Added update playbook, Refactoring for Conformity
This commit is contained in:
@@ -3,3 +3,8 @@ inventory = inventory/testserver.ini
|
|||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
stdout_callback = yaml
|
stdout_callback = yaml
|
||||||
callback_enabled = timer
|
callback_enabled = timer
|
||||||
|
nocows = 1
|
||||||
|
|
||||||
|
|
||||||
|
[inventory]
|
||||||
|
enable_plugins = host_list, script, auto, yaml, ini, toml
|
||||||
@@ -1,7 +1,10 @@
|
|||||||
[webservers]
|
[linuxservers]
|
||||||
testserver ansible_port=22
|
Tim-TT-[01:03].kitl.bayern
|
||||||
|
|
||||||
[webservers:vars]
|
[linuxserver:vars]
|
||||||
ansible_user = tim
|
ansible_user = tim
|
||||||
ansible_host = 192.168.62.160
|
ansible_port = 22
|
||||||
ansible_private_key_file = keys/id_ed25519
|
ansible_private_key_file = keys/id_ed25519
|
||||||
|
|
||||||
|
[webserver]
|
||||||
|
linuxerver
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- name: Update Server
|
||||||
|
hosts: linuxservers
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- name: Update and Upgrade System
|
||||||
|
apt:
|
||||||
|
update_cache: true
|
||||||
|
upgrade: true
|
||||||
|
|
||||||
|
- name: Reboot System
|
||||||
|
reboot:
|
||||||
|
...
|
||||||
Reference in New Issue
Block a user