Advertisement
chestnutj2000

lab5UndoJC.yml

Dec 7th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ---
  2. - name: uninstall httpd
  3. hosts: ansible2.example.com
  4. tasks:
  5. - name: stop the service
  6. service:
  7. name: httpd
  8. state: stopped
  9. enabled: false
  10. - name: close firewall
  11. firewalld:
  12. service: http
  13. permanent: yes
  14. state: disabled
  15. - name: Remove file
  16. file:
  17. path: /var/www/html/index.html
  18. state: absent
  19. - name: uninstall pckg
  20. package:
  21. name: httpd
  22. state: absent
  23. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement