Icinga / ansible-playbooks

Ansible Playbook for Icinga 2
GNU General Public License v2.0
225 stars 122 forks source link

"become: yes" is missing in various places #106

Open lindt opened 5 years ago

lindt commented 5 years ago

Using the ansible roles without --become is impossible. Many steps currently require super user privileges. Would prefer to run the ansible roles without executing everything as super user and just use super user privileges when needed.

- yum:
    name: icinga2
    state: present

Expected Behavior

- yum:
    name: icinga2
    state: present
  become: yes .   # would prefer this explicit super user privileges

Possible Solution

Adding behave: yes to places where super user privileges are required.

Steps to Reproduce (for bugs)

Execute the roles without --become