summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/become
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2020-09-25 21:30:47 +0200
committerGitHub <noreply@github.com>2020-09-25 21:30:47 +0200
commit35b0fef536dee06e6cc72f9da2d2a2031bb0add8 (patch)
treeee4928d83ffcd88eda2307c7f38677a5d46fb6c7 /test/integration/targets/become
parentadd badge for CII (#71944) (diff)
downloadansible-35b0fef536dee06e6cc72f9da2d2a2031bb0add8.tar.xz
ansible-35b0fef536dee06e6cc72f9da2d2a2031bb0add8.zip
Changes required for macOS 10.15 (#71841)
* Use default group of staff on macos to prevent sudo issues * Install gnu-tar for macos in git and unarchive tests * Enable timezone module to support py3 on macos * If the virtualenv command is missing, try python -m virtualenv * Install passlib for filter_core on macos * Install paramiko via pip on macos for paramiko tests * Normalize discovered python interpreter on macos * Get pip tests passing, by ensuring we have wheel installed * Create /etc/ansible for ca certs on mac, list lookup_url as destructive * Fixups for CA certs * Include macos * Dynamically get cafile instead of hardcoding the path
Diffstat (limited to 'test/integration/targets/become')
-rw-r--r--test/integration/targets/become/tasks/default.yml1
-rw-r--r--test/integration/targets/become/tasks/su.yml1
-rw-r--r--test/integration/targets/become/tasks/sudo.yml1
3 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/targets/become/tasks/default.yml b/test/integration/targets/become/tasks/default.yml
index 59568ed662..4ba10170dd 100644
--- a/test/integration/targets/become/tasks/default.yml
+++ b/test/integration/targets/become/tasks/default.yml
@@ -3,6 +3,7 @@
become_user: root
user:
name: "{{ become_test_user }}"
+ group: '{{ "staff" if ansible_facts.distribution == "MacOSX" else omit }}'
- name: test becoming user (become_method=default)
shell: whoami
diff --git a/test/integration/targets/become/tasks/su.yml b/test/integration/targets/become/tasks/su.yml
index 01e40b6aa7..d314b0a87e 100644
--- a/test/integration/targets/become/tasks/su.yml
+++ b/test/integration/targets/become/tasks/su.yml
@@ -4,6 +4,7 @@
become_method: su
user:
name: "{{ become_test_user }}"
+ group: '{{ "staff" if ansible_facts.distribution == "MacOSX" else omit }}'
- name: test becoming user (become_method=su)
shell: whoami
diff --git a/test/integration/targets/become/tasks/sudo.yml b/test/integration/targets/become/tasks/sudo.yml
index 8b0cce5a76..636ec378be 100644
--- a/test/integration/targets/become/tasks/sudo.yml
+++ b/test/integration/targets/become/tasks/sudo.yml
@@ -4,6 +4,7 @@
become_method: sudo
user:
name: "{{ become_test_user }}"
+ group: '{{ "staff" if ansible_facts.distribution == "MacOSX" else omit }}'
- name: test becoming user (become_method=sudo)
shell: whoami