Run update tasks with become

Make it aligned with the upgrade tasks, what uses become as well

Change-Id: I58da2c214c5a9cf013bc7719649e0d0d4f3a6f74
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
Bogdan Dobrelya 2021-04-14 10:41:45 +02:00
parent 5ed1b12242
commit dc52f3c949
1 changed files with 1 additions and 0 deletions

View File

@ -887,6 +887,7 @@ outputs:
{%- for role in roles %}
- hosts: {{role.name}}
name: Run update
become: true
serial: "{% raw %}{{ update_serial | default({% endraw %}{{ role.update_serial | default(1) }}{% raw %})}}{% endraw %}"
gather_facts: "{% raw %}{{ gather_facts | default(false) }}{% endraw %}"
any_errors_fatal: yes