mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-03-09 11:05:18 +01:00
Compare commits
11 commits
9cc8d67b04
...
01a4d0107b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01a4d0107b | ||
|
|
e929aad539 | ||
|
|
0847977d12 | ||
|
|
2a1fb334ee | ||
|
|
af870d0b83 | ||
|
|
8e900e5218 | ||
|
|
45d8819b7c | ||
|
|
6473053b13 | ||
|
|
046f6d1483 | ||
|
|
3abd029b9f | ||
|
|
3d2681aea6 |
10 changed files with 27 additions and 30 deletions
|
|
@ -209,10 +209,8 @@ stages:
|
||||||
test: rhel/8.7
|
test: rhel/8.7
|
||||||
- name: RHEL 9.1
|
- name: RHEL 9.1
|
||||||
test: rhel/9.1
|
test: rhel/9.1
|
||||||
- name: FreeBSD 13.1
|
- name: FreeBSD 13.2
|
||||||
test: freebsd/13.1
|
test: freebsd/13.2
|
||||||
- name: FreeBSD 12.4
|
|
||||||
test: freebsd/12.4
|
|
||||||
- stage: Remote_2_14
|
- stage: Remote_2_14
|
||||||
displayName: Remote 2.14
|
displayName: Remote 2.14
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
|
|
@ -225,10 +223,8 @@ stages:
|
||||||
test: rhel/7.9
|
test: rhel/7.9
|
||||||
- name: RHEL 8.6
|
- name: RHEL 8.6
|
||||||
test: rhel/8.6
|
test: rhel/8.6
|
||||||
- name: FreeBSD 13.1
|
- name: FreeBSD 13.2
|
||||||
test: freebsd/13.1
|
test: freebsd/13.2
|
||||||
- name: FreeBSD 12.4
|
|
||||||
test: freebsd/12.4
|
|
||||||
|
|
||||||
## Finally
|
## Finally
|
||||||
|
|
||||||
|
|
|
||||||
2
changelogs/fragments/421-remove-deprecation-warning.yml
Normal file
2
changelogs/fragments/421-remove-deprecation-warning.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
trivial:
|
||||||
|
- synchronize - instantiate the connection plugin without the ``new_stdin`` argument, which is deprecated in ansible-core 2.15 (https://github.com/ansible-collections/ansible.posix/pull/421).
|
||||||
2
changelogs/fragments/504-firewalld_info-warning.yaml
Normal file
2
changelogs/fragments/504-firewalld_info-warning.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- firewalld_info - Only warn about ignored zones, when there are zones ignored.
|
||||||
|
|
@ -284,9 +284,6 @@ class ActionModule(ActionBase):
|
||||||
# told (via delegate_to) that a different host is the source of the
|
# told (via delegate_to) that a different host is the source of the
|
||||||
# rsync
|
# rsync
|
||||||
if not use_delegate and remote_transport:
|
if not use_delegate and remote_transport:
|
||||||
# Create a connection to localhost to run rsync on
|
|
||||||
new_stdin = self._connection._new_stdin
|
|
||||||
|
|
||||||
# Unlike port, there can be only one shell
|
# Unlike port, there can be only one shell
|
||||||
localhost_shell = None
|
localhost_shell = None
|
||||||
for host in C.LOCALHOST:
|
for host in C.LOCALHOST:
|
||||||
|
|
@ -315,7 +312,11 @@ class ActionModule(ActionBase):
|
||||||
localhost_executable = C.DEFAULT_EXECUTABLE
|
localhost_executable = C.DEFAULT_EXECUTABLE
|
||||||
self._play_context.executable = localhost_executable
|
self._play_context.executable = localhost_executable
|
||||||
|
|
||||||
new_connection = connection_loader.get('local', self._play_context, new_stdin)
|
try:
|
||||||
|
new_connection = connection_loader.get('local', self._play_context)
|
||||||
|
except TypeError:
|
||||||
|
# Needed for ansible-core < 2.15
|
||||||
|
new_connection = connection_loader.get('local', self._play_context, self._connection._new_stdin)
|
||||||
self._connection = new_connection
|
self._connection = new_connection
|
||||||
# Override _remote_is_local as an instance attribute specifically for the synchronize use case
|
# Override _remote_is_local as an instance attribute specifically for the synchronize use case
|
||||||
# ensuring we set local tmpdir correctly
|
# ensuring we set local tmpdir correctly
|
||||||
|
|
|
||||||
|
|
@ -102,8 +102,8 @@ class CallbackModule(CallbackBase):
|
||||||
self._display.display(tasktime())
|
self._display.display(tasktime())
|
||||||
|
|
||||||
def playbook_on_stats(self, stats):
|
def playbook_on_stats(self, stats):
|
||||||
self._display.display(tasktime())
|
# Align summary report header with other callback plugin summary
|
||||||
self._display.display(filled("", fchar="="))
|
self._display.banner("ROLE RECAP")
|
||||||
|
|
||||||
timestamp(self)
|
timestamp(self)
|
||||||
total_time = sum(self.totals.values())
|
total_time = sum(self.totals.values())
|
||||||
|
|
@ -116,3 +116,4 @@ class CallbackModule(CallbackBase):
|
||||||
msg_total = u"{0:-<70}{1:->9}".format(u'total ', u' {0:.02f}s'.format(total_time))
|
msg_total = u"{0:-<70}{1:->9}".format(u'total ', u' {0:.02f}s'.format(total_time))
|
||||||
self._display.display(filled("", fchar="~"))
|
self._display.display(filled("", fchar="~"))
|
||||||
self._display.display(msg_total)
|
self._display.display(msg_total)
|
||||||
|
|
||||||
|
|
@ -174,8 +174,8 @@ class CallbackModule(CallbackBase):
|
||||||
self._display.display(tasktime())
|
self._display.display(tasktime())
|
||||||
|
|
||||||
def playbook_on_stats(self, stats):
|
def playbook_on_stats(self, stats):
|
||||||
self._display.display(tasktime())
|
# Align summary report header with other callback plugin summary
|
||||||
self._display.display(filled("", fchar="="))
|
self._display.banner("TASKS RECAP")
|
||||||
|
|
||||||
timestamp(self)
|
timestamp(self)
|
||||||
self.current = None
|
self.current = None
|
||||||
|
|
@ -199,3 +199,4 @@ class CallbackModule(CallbackBase):
|
||||||
if 'path' in result:
|
if 'path' in result:
|
||||||
msg += u"\n{0:-<{1}}".format(result['path'] + u' ', self._display.columns)
|
msg += u"\n{0:-<{1}}".format(result['path'] + u' ', self._display.columns)
|
||||||
self._display.display(msg)
|
self._display.display(msg)
|
||||||
|
|
||||||
|
|
@ -46,4 +46,6 @@ class CallbackModule(CallbackBase):
|
||||||
def v2_playbook_on_stats(self, stats):
|
def v2_playbook_on_stats(self, stats):
|
||||||
end_time = datetime.utcnow()
|
end_time = datetime.utcnow()
|
||||||
runtime = end_time - self.start_time
|
runtime = end_time - self.start_time
|
||||||
self._display.display("Playbook run took %s days, %s hours, %s minutes, %s seconds" % (self.days_hours_minutes_seconds(runtime)))
|
# Align summary report header with other callback plugin summary
|
||||||
|
self._display.banner("PLAYBOOK RECAP")
|
||||||
|
self._display.display("Playbook run took %s days, %s hours, %s minutes, %s seconds\n\r" % (self.days_hours_minutes_seconds(runtime)))
|
||||||
|
|
|
||||||
|
|
@ -356,8 +356,9 @@ def main():
|
||||||
specified_zones = module.params['zones']
|
specified_zones = module.params['zones']
|
||||||
collect_zones = list(set(specified_zones) & set(all_zones))
|
collect_zones = list(set(specified_zones) & set(all_zones))
|
||||||
ignore_zones = list(set(specified_zones) - set(collect_zones))
|
ignore_zones = list(set(specified_zones) - set(collect_zones))
|
||||||
warn.append(
|
if ignore_zones:
|
||||||
'Please note: zone:(%s) have been ignored in the gathering process.' % ','.join(ignore_zones))
|
warn.append(
|
||||||
|
'Please note: zone:(%s) have been ignored in the gathering process.' % ','.join(ignore_zones))
|
||||||
else:
|
else:
|
||||||
collect_zones = get_all_zones(client)
|
collect_zones = get_all_zones(client)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -831,7 +831,7 @@ def main():
|
||||||
# handle mount on boot. To avoid mount option conflicts, if 'noauto'
|
# handle mount on boot. To avoid mount option conflicts, if 'noauto'
|
||||||
# specified in 'opts', mount module will ignore 'boot'.
|
# specified in 'opts', mount module will ignore 'boot'.
|
||||||
opts = args['opts'].split(',')
|
opts = args['opts'].split(',')
|
||||||
if 'noauto' in opts:
|
if module.params['boot'] and 'noauto' in opts:
|
||||||
args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'noauto'.")
|
args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'noauto'.")
|
||||||
elif not module.params['boot']:
|
elif not module.params['boot']:
|
||||||
args['boot'] = 'no'
|
args['boot'] = 'no'
|
||||||
|
|
|
||||||
|
|
@ -62,16 +62,7 @@ else
|
||||||
retry pip install "https://github.com/ansible/ansible/archive/stable-${ansible_version}.tar.gz" --disable-pip-version-check
|
retry pip install "https://github.com/ansible/ansible/archive/stable-${ansible_version}.tar.gz" --disable-pip-version-check
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${SHIPPABLE_BUILD_ID:-}" ]; then
|
export ANSIBLE_COLLECTIONS_PATHS="${PWD}/../../../"
|
||||||
export ANSIBLE_COLLECTIONS_PATHS="${HOME}/.ansible"
|
|
||||||
SHIPPABLE_RESULT_DIR="$(pwd)/shippable"
|
|
||||||
TEST_DIR="${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/ansible/posix"
|
|
||||||
mkdir -p "${TEST_DIR}"
|
|
||||||
cp -aT "${SHIPPABLE_BUILD_DIR}" "${TEST_DIR}"
|
|
||||||
cd "${TEST_DIR}"
|
|
||||||
else
|
|
||||||
export ANSIBLE_COLLECTIONS_PATHS="${PWD}/../../../"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# START: HACK install dependencies
|
# START: HACK install dependencies
|
||||||
if [ "${ansible_version}" == "2.9" ] || [ "${ansible_version}" == "2.10" ]; then
|
if [ "${ansible_version}" == "2.9" ] || [ "${ansible_version}" == "2.10" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue