ansible config
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
---
|
||||
|
||||
- hosts: localhost
|
||||
connection: localhost
|
||||
become: true
|
||||
|
||||
pre_tasks:
|
||||
|
||||
- name: change sorces.list file
|
||||
copy:
|
||||
src: files/sources.list
|
||||
dest: /etc/apt/sources.list
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: change sorces.list file
|
||||
copy:
|
||||
src: files/pve-enterprise.list
|
||||
dest: /etc/apt/sources.list.d/pve-enterprise.list
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
tasks:
|
||||
|
||||
- name: update package cache
|
||||
apt: update_cache=yes
|
||||
|
||||
- name: dist upgrade
|
||||
apt: upgrade=dist
|
||||
|
||||
- name: Unconditionally reboot the machine with all defaults
|
||||
reboot:
|
||||
reboot_command: reboot
|
||||
Reference in New Issue
Block a user