Skip to content

Latest commit

 

History

History
89 lines (51 loc) · 2.37 KB

project-12.md

File metadata and controls

89 lines (51 loc) · 2.37 KB

Documentation of project 12

STEP 1

  1. 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

    Project12

  2. I installed "copy artifacts from my jenkins web console"

    Project12

  3. I created a freestyle project and named it "save_artifacts"

    Project12

  4. I configured my freestlye project for it to trigger builds from ansible builds

    Project12 Project12

  5. I confirmed if my files are in the ansible-config-artifact directory

    Project12 Project12

  6. I created a role path for ansible in "etc/ansible/ansible.cnf"

    sudo vi /etc/ansible/ansible.cnf

    Project12

  7. I created a file; "common-del.yml" in my static-assignments directory

    Project12

  8. I confirmed if my ansible command was runing

    ansible all -m ping

    ![Project12](images/image15.PNG)
    
  9. 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

    Project12

  10. I confirmed if wireshark has been deleted on all instances connected

    Project12 Project12 Project12 Project12 Project12

  11. I launched two new instances and named it "web1-uat" and "web2-uat"

    Project12

  12. I created a webserver role

    Project12

  13. I edited my ansible.conf file

    Project12

  14. I commited and pushed all changes to my github repository

    Project12

  15. I manually checked if my webservers are okay

    uat-webserver -m ping Project12

  16. I run my ansible-playbook command and it worked

    Project12

  17. These are the commands in my files

    Project12 Project12 Project12 Project12