Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Forcing to avoid the use of become on locally delegated tasks #160

Merged
merged 1 commit into from
Mar 31, 2019

Conversation

tiraboschi
Copy link
Contributor

locally delegated tasks.

The whole role can be also executed with
delegate_to: root as a regular
user on the ansible controller node.

Cleaning up .ssh/know_hosts for
leftovers on the ansible controller
should happen as current user also in that case.

Fixes: #143

locally delegated tasks.

The whole role can be also executed with
delegate_to: root as a regular
user on the ansible controller node.

Cleaning up .ssh/know_hosts for
leftovers on the ansible controller
should happen as current user also in that case.

Fixes: oVirt#143
@tiraboschi
Copy link
Contributor Author

@tiraboschi
Copy link
Contributor Author

Verified deploying over a remote host as an unprivileged user with sudo right on the target host:

[stirabos@ansiblec ~]$ ansible-playbook -i c76he20190321h1.localdomain, hosted_engine_deploy.yml --extra-vars='@he_deployment.json' --extra-vars='@passwords.yml' --ask-vault-pass
...
PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************************
c76he20190321h1.localdomain : ok=352  changed=120  unreachable=0    failed=0   

[stirabos@ansiblec ~]$ cat hosted_engine_deploy.yml 
---
- name: Deploy oVirt hosted engine
  hosts: c76he20190321h1.localdomain
  become: true
  become_user: root
  roles:
    - role: ovirt.hosted_engine_setup

@irosenzw irosenzw merged commit 3ded07c into oVirt:master Mar 31, 2019
@tiraboschi tiraboschi deleted the local_sudo branch May 21, 2019 11:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants