Monday, August 04, 2025

Re: ansible.builtin.package vs pkg_add command directly (was Re: ansible breakage)

Mikolaj Kucharski writes:
> Hi Lyndon,
>
> Out of curiosity, can you give an example how you work with pkg_add
> command directly, instead with ansible.builtin.package?

- name: Install pftop
ansible.builtin.command: pkg_add pftop--
tags: pftop

- name: Install squid
ansible.builtin.command: pkg_add squid--
tags: squid

- name: Enable squid
ansible.builtin.command: rcctl enable squid
tags: squid

--lyndon

No comments:

Post a Comment