-
I created a directory, named it "ansible-config-artifact" and changed the permission.
sudo mkdir /home/ubuntu/ansible-config-artifact
chmod -R 0777 /home/ubuntu/ansible-config-artifact
-
I installed "copy artifacts from my jenkins web console"
-
I created a freestyle project and named it "save_artifacts"
-
I configured my freestlye project for it to trigger builds from ansible builds
-
I confirmed if my files are in the ansible-config-artifact directory
-
I created a role path for ansible in "etc/ansible/ansible.cnf"
sudo vi /etc/ansible/ansible.cnf
-
I created a file; "common-del.yml" in my static-assignments directory
-
I confirmed if my ansible command was runing
ansible all -m ping
![Project12](images/image15.PNG)
-
I ran my playbook to delete wireshark and it worked
ansible-playbook -i /home/ubuntu/ansible-config-artifact/inventory/dev.yml /home/ubuntu/ansible-config-artifact/playbooks/site.yml
-
I confirmed if wireshark has been deleted on all instances connected
-
I launched two new instances and named it "web1-uat" and "web2-uat"
-
I created a webserver role
-
I edited my ansible.conf file
-
I commited and pushed all changes to my github repository
-
I manually checked if my webservers are okay
-
I run my ansible-playbook command and it worked
-
These are the commands in my files