From 7cd6b48f3ea56454d000f5252fe053935f31167c Mon Sep 17 00:00:00 2001 From: Shankar Mounesh Date: Sun, 12 Jun 2022 17:28:20 +0530 Subject: [PATCH] changed proxmox.yml file --- README.md | 7 +++++-- proxmox.yml | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a7a697a..c822074 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ 1. Ansible must be installed in the environment 2. Ansible will configure a cron-job that watches this repo for changes if any changes made ansible will automatically update the configuration in every machine -## Run this command to install and run ansible +## Run this command as a root user to install and run ansible ```sh -curl 172.16.16.65:8081/ansible/ | sudo bash +curl 172.16.16.65:8081/ansible/ | bash ``` The above command downloads a bash file from 172.16.16.65 and runs the following commands instead of running one by one @@ -13,8 +13,11 @@ The above command downloads a bash file from 172.16.16.65 and runs the following ```sh apt update -y; +apt install git -y; apt install software-properties-common -y; add-apt-repository --yes --update ppa:ansible/ansible; apt install ansible -y; +ansible --version; +ansible-pull -U https://git.bitsathy.ac.in/ShankarMounesh/ansible-proxmox.git ``` diff --git a/proxmox.yml b/proxmox.yml index 0559cf3..406e5a6 100644 --- a/proxmox.yml +++ b/proxmox.yml @@ -19,6 +19,11 @@ dest: /etc/apt/sources.list.d/pve-enterprise.list owner: root group: root + + - name: Remove ansible repo + community.general.apt_repo: + repo: ansible/ansible + state: absent tasks: