Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: uninstall httpd
- hosts: ansible2.example.com
- tasks:
- - name: stop the service
- service:
- name: httpd
- state: stopped
- enabled: false
- - name: close firewall
- firewalld:
- service: http
- permanent: yes
- state: disabled
- - name: Remove file
- file:
- path: /var/www/html/index.html
- state: absent
- - name: uninstall pckg
- package:
- name: httpd
- state: absent
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement