On 7/15/20 5:38 PM, Tony Wong wrote: > trying to remove mysql from a previous install > > -- > - hosts: all > become: true > vars_files: > - vars/default.yml > > tasks: > - name: Uninstall MySQL packages. > apt: name={{ item }} state=absent > with_items: > - mysql-server > - mysql-client > > but not working
To me it looks like it works (removing the packages), but your syntax is outdated. It should be apt: name: - mysql-server - mysql-client Regards Racke > > > [Uninstall MySQL packages.] > **************************************************************************************************************** > [DEPRECATION WARNING]: Invoking "apt" only once while using a loop via > squash_actions is deprecated. Instead of using a > loop to supply multiple > items and specifying `name: "{{ item }}"`, please use `name: ['mysql-server', > 'mysql-client']` and remove the loop. This > feature will be removed > in version 2.11. Deprecation warnings can be disabled by setting > deprecation_warnings=False in ansible.cfg. > ok: [ubuntu2] => (item=[u'mysql-server', u'mysql-client']) > > > > > > > -- > 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 > ansible-project+unsubscr...@googlegroups.com > <mailto:ansible-project+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CALmkhkrCLRKxcYdgxW4C%2BjgvDgRu8_F%2BC-C8kNVdsV37HbGHqg%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CALmkhkrCLRKxcYdgxW4C%2BjgvDgRu8_F%2BC-C8kNVdsV37HbGHqg%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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f83ecd7b-e573-985a-329b-6a4d59bb5b1a%40linuxia.de.
signature.asc
Description: OpenPGP digital signature