Trying to run ansible-playbook with localhost.
Playbook:

---
- hosts: localhost
  become: true
  become_method: doas

  roles:
  - wrkstpkgs


Expected behaviour - Ansible asks for the become pass only once, then execution of tasks require no intervention.
Observed behaviour:

run ansible-playbook:

 ansible-playbook  -K site.yml
BECOME password:
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [localhost] ******************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************************************************************************************************************
doas (g...@lbld12.duckdns.org) password:
ok: [localhost]

TASK [wrkstpkgs : ensure vital packages are present] ******************************************************************************************************************************************************************************************
doas (g...@lbld12.duckdns.org) password:
ok: [localhost]

TASK [wrkstpkgs : ensure versioned packages are present] **************************************************************************************************************************************************************************************
doas (g...@lbld12.duckdns.org) password:

doas.conf only contains this line:
permit persist greg

Am I missing anything? Thanks a lot in advance.
--
With best regards,
     Gregory Edigarov


Reply via email to