changed proxmox.yml file
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
1. Ansible must be installed in the environment
|
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
|
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
|
```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
|
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
|
```sh
|
||||||
apt update -y;
|
apt update -y;
|
||||||
|
apt install git -y;
|
||||||
apt install software-properties-common -y;
|
apt install software-properties-common -y;
|
||||||
add-apt-repository --yes --update ppa:ansible/ansible;
|
add-apt-repository --yes --update ppa:ansible/ansible;
|
||||||
apt install ansible -y;
|
apt install ansible -y;
|
||||||
|
ansible --version;
|
||||||
|
ansible-pull -U https://git.bitsathy.ac.in/ShankarMounesh/ansible-proxmox.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,11 @@
|
|||||||
dest: /etc/apt/sources.list.d/pve-enterprise.list
|
dest: /etc/apt/sources.list.d/pve-enterprise.list
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
|
- name: Remove ansible repo
|
||||||
|
community.general.apt_repo:
|
||||||
|
repo: ansible/ansible
|
||||||
|
state: absent
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user