The actions that those two tasks perform look to be the same, but you
should update the "name:" field to better reflect that the job is
removing/un-installing those packages.
On Thursday, July 16, 2020 at 8:58:44 AM UTC-5 tdub...@gmail.com wrote:
> control server is ubuntu 19.10
> client is
control server is ubuntu 19.10
client is 20.04
ok working now
are these 2 pb doing same thing?
---
- hosts: all
become: true
vars_files:
- vars/default.yml
tasks:
- name: Install prerequisites
apt:
name:
- apache2
- mysql-server
-
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
>
> I tried this pb but its not uninstalling
Can you be more specific? What version of Ansible are you using, what
version of Debian/Ubuntu is the server you're working on?
What is the output of this command when you run it on the machine you're
wanting to remove the packages from:
apt
I tried this pb but its not uninstalling
--
- hosts: all
become: true
vars_files:
- vars/default.yml
tasks:
- name: remove
apt:
name:
- mysql-server
- mysql-client
- python3-pymysql
- php
- php-mysql
- libapache2-mod-php
>
> this was the original install and I am just trying to reverse the installs
>
---
- 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' ]