Files
ansible-proxmox/proxmox.yml
T
2022-06-12 21:26:46 +05:30

54 lines
1.0 KiB
YAML

---
- 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: remove vim-nox
apt:
name: vim-nox
state: absent
- name: dist upgrade
apt: upgrade=dist
- name: add ansible-pull cron job
cron:
name: ansible auto-provision
minute: "*/10"
user: root
job: "ansible-pull -o -U https://git.bitsathy.ac.in/ShankarMounesh/"
- name: add reboot cronjob
cron:
name: reboot machine every sunday
minute: "*/8"
# hour: "1"
# weekday: "0"
user: root
job: "/usr/bin/bash /usr/sbin/reboot"