On 7/15/20 6:55 PM, Tony Wong wrote:
>     this was the original install and I am just trying to reverse the installs
> 
> 

What is the distribution and the release of the target server(s)?

Regards
          Racke

> ---
> - hosts: all
>   become: true
>   vars_files:
>     - vars/default.yml
> tasks:
>     - name: Install prerequisites
>       apt: name={{ item }} update_cache=yes state=absent force_apt_get=yes
>       loop: [ 'aptitude' ]
> 
>   #Apache Configuration
>     - name: Install LAMP Packages
>       apt: name={{ item }} update_cache=yes state=absent
>       loop: [ 'apache2', 'mysql-server', 'python3-pymysql', 'php', 
> 'php-mysql', 'libapache2-mod-php' ]
> 
>     - name: Create document root
>       file:
>         path: "/var/www/{{ http_host }}"
>         state: directory
>         owner: "{{ app_user }}"
>         mode: '0755'
> 
>     - name: Set up Apache virtualhost
>       template:
>         src: "files/apache.conf.j2"
>         dest: "/etc/apache2/sites-available/{{ http_conf }}"
>       notify: Reload Apache
> 
>     - name: Enable new site
>       shell: /usr/sbin/a2ensite {{ http_conf }}
>       notify: Reload Apache
> 
>     - name: Disable default Apache site
>       shell: /usr/sbin/a2dissite 000-default.conf
>       when: disable_default
>       notify: Reload Apache
> 
>   # MySQL Configuration
>     - name: Sets the root password
>       mysql_user:
>         name: root
>  
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to
> [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CALmkhkoJqa11F8P6Y2SBKr94E8PhgNpAqR_GA8AW%2Bch5NH0QoQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CALmkhkoJqa11F8P6Y2SBKr94E8PhgNpAqR_GA8AW%2Bch5NH0QoQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ed3037a6-ee6f-7e09-af51-740cd794ae27%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to