Upload Ansible Files
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
- name: APT Upgrade
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: APT Upgrade
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
upgrade: dist
|
||||
register: apt_output
|
||||
|
||||
- name: APT Stdout
|
||||
debug:
|
||||
var: apt_output
|
||||
|
||||
- name: Restart SSHD
|
||||
ansible.builtin.service:
|
||||
name: sshd
|
||||
state: restarted
|
||||
register: sshd_stdout
|
||||
|
||||
- name: SSHD Restart
|
||||
debug:
|
||||
var: sshd_stdout
|
||||
Reference in New Issue
Block a user