Compare commits

...

4 commits

Author SHA1 Message Date
Will Szumski
2487b1aca7
Merge 7ac665a0aa into 719f7dfebf 2023-11-24 11:39:31 +01:00
softwarefactory-project-zuul[bot]
719f7dfebf
Merge pull request #510 from saito-hideki/issue/509
[CI] Replace Fedora 38 with 39 for devel branch container test

SUMMARY
Replace Fedora 38 container test with 39 for devel branch.

Fixed /#509

ISSUE TYPE

CI test Pull Request

COMPONENT NAME

ansible.posix

ADDITIONAL INFORMATION
None
2023-11-23 15:56:55 +00:00
Hideki Saito
5cae7aa946 Replace Fedora 38 with 39 for devel branch container test 2023-11-22 17:09:41 +09:00
jovial
7ac665a0aa
Support templating in ansible_user
Before this change it is not possible to use templating for the ansible_user e.g:

  ansible_user: "{{ some_variable }}"
2022-03-25 12:00:30 +00:00
3 changed files with 6 additions and 2 deletions

View file

@ -51,8 +51,8 @@ stages:
parameters: parameters:
testFormat: devel/linux/{0}/1 testFormat: devel/linux/{0}/1
targets: targets:
- name: Fedora 38 - name: Fedora 39
test: fedora38 test: fedora39
- name: Ubuntu 20.04 - name: Ubuntu 20.04
test: ubuntu2004 test: ubuntu2004
- name: Ubuntu 22.04 - name: Ubuntu 22.04

View file

@ -0,0 +1,3 @@
---
trivial:
- "Replace Fedora 38 with 39 for container test(https://github.com/ansible-collections/ansible.posix/issues/509)."

View file

@ -346,6 +346,7 @@ class ActionModule(ActionBase):
user = C.DEFAULT_REMOTE_USER user = C.DEFAULT_REMOTE_USER
else: else:
user = task_vars.get('ansible_user') or self._play_context.remote_user user = task_vars.get('ansible_user') or self._play_context.remote_user
user = self._templar.template(user)
if self._templar is not None: if self._templar is not None:
user = self._templar.template(user) user = self._templar.template(user)