ansible-collections / ansible.posix Goto Github PK
View Code? Open in Web Editor NEWAnsible Collection for Posix
License: Other
Ansible Collection for Posix
License: Other
From @timurakhmadeev on Aug 15, 2020 13:07
The callback plugin shows time of the last task run. When a task is run in bathes via 'serial', it leads to incorrect results.
profile_tasks
config file = /home/tiak/test/ansible.cfg
configured module search path = [u'/home/tiak/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.17 (default, Jul 20 2020, 15:37:01) [GCC 7.5.0]
DEFAULT_CALLBACK_WHITELIST(/home/tiak/test/ansible.cfg) = [u'profile_tasks']
INTERPRETER_PYTHON(/home/tiak/test/ansible.cfg) = auto_silent
Ubuntu 18.04
$ cat inv.yml
all:
hosts:
host1:
ansible_host: localhost
host2:
ansible_host: localhost
$ cat test.yml
- hosts: all
connection: local
serial: 1
gather_facts: no
tasks:
- name: sleep 3s
shell: sleep 3
Total time reported by profile_tasks is 6s+
Total time reported by profile_tasks is ~3s
$ time ansible-playbook -i inv.yml test.yml
PLAY [all] ****************************************************************************************************************************************************
TASK [sleep 3s] ***********************************************************************************************************************************************
Saturday 15 August 2020 16:05:30 +0300 (0:00:00.035) 0:00:00.035 *******
changed: [host2]
PLAY [all] ****************************************************************************************************************************************************
TASK [sleep 3s] ***********************************************************************************************************************************************
Saturday 15 August 2020 16:05:34 +0300 (0:00:03.677) 0:00:03.713 *******
changed: [host1]
PLAY RECAP ****************************************************************************************************************************************************
host1 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
host2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Saturday 15 August 2020 16:05:37 +0300 (0:00:03.446) 0:00:07.159 *******
===============================================================================
sleep 3s ----------------------------------------------------------------------------------------------------------------------------------------------- 3.45s
real 0m7.907s
user 0m1.664s
sys 0m0.507s
Copied from original issue: ansible/ansible#71293
Hi, I'm expiriencing exactly the same problem as described in Case #64936 (which is closed)
lib/ansible/plugins/callback/cgroup_perf_recap.py
ansible 2.9.12
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/ec2-user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 3.6.8 (default, May 21 2019, 23:51:36) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)]
DEFAULT_CALLBACK_WHITELIST(/etc/ansible/ansible.cfg) = ['cgroup_perf_recap']
RHEL 8.0 (but tested on Ubuntu 18.04.4 as well)
When using the callback plugin I get a reasonable output for memory usage, but not for cpu and pids:
[...]
CGROUP PERF RECAP *******************************************************************************************
Memory Execution Maximum: 50.49MB
cpu profiling error: no results collected: max() arg is an empty sequence
pids profiling error: no results collected: max() arg is an empty sequence
[...]
Created cgroup like this:
# cgcreate -a ec2-user:ec2-user -t ec2-user:ec2-user -g cpuacct,memory,pids:ansible_profile
# lscgroup | grep ansible_profile
cpu,cpuacct:/ansible_profile
pids:/ansible_profile
memory:/ansible_profile
The playbook is executed as user ec2-user (please note the warning that is shown):
$ export CGROUP_CONTROL_GROUP=ansible_profile
$ cgexec -g cpuacct,memory,pids:ansible_profile ansible-playbook test.yml
---
- name: tEST
gather_facts: false
hosts: localhost
vars:
multiline: |
Das ist ein mehrzeiliger
Test, daher bitte aufpassen
tasks:
- name: Ausgabe
debug:
var: multiline
CPU and pid profiling infos should not show an error.
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does
not match 'all'
PLAY [tEST] *************************************************************************************************
TASK [Ausgabe] **********************************************************************************************
[WARNING]: Failure using method (v2_playbook_on_task_start) in callback plugin
(<ansible.plugins.callback.cgroup_perf_recap.CallbackModule object at 0x7f6b452d3358>): 'CallbackModule'
object has no attribute '_file_name_format'
ok: [localhost] => {
"multiline": "Das ist ein mehrzeiliger\nTest, daher bitte aufpassen\n"
}
PLAY RECAP **************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
CGROUP PERF RECAP *******************************************************************************************
Memory Execution Maximum: 50.59MB
cpu profiling error: no results collected: max() arg is an empty sequence
pids profiling error: no results collected: max() arg is an empty sequence
sysctl module has no diff mode.
sysctl
When trying to use the authorized_key-module to add one of the new ecdsa-sk
-keys OpenSSH 8.2 supports, I get an error saying invalid key specified
.
Looking through
it seems ansible checks keys to see if they match a value in this list.[email protected]
and [email protected]
(see SSHD man page for full list of keytypes) should be added. I don't know if just adding the keytype to this list will be enough. I don't really know python, but just adding the keytype to this list did not solve the issue on my system, so there might be some additional work needed.
authorized_key
ansible 2.9.6
ANSIBLE_NOCOWS(env: ANSIBLE_NOCOWS) = True
Ansible is run on macOS Catalina, 10.15.4, agains hosts running Ubuntu 20.04.
---
- hosts: test
gather_facts: false
tasks:
- name: test pubkey
authorized_key:
key: "[email protected] AAAAInNrLWVjZHNhLXNoYTItbmlzdHAyNTZAb3BlbnNzaC5jb20AAAAIbmlzdHAyNTYAAABBBI6ehr2PuvCMscCnNypBrLudMZn1DzwQPV/QX8AZ6QhdOt5nAvZv2Hk/WrjNIoYfqZYgQan/J0vHThfRbLVtYboAAAAEc3NoOg== ansikey@host"
user: root
I expect the key to be added to /root/.ssh/authorized_keys
.
~$ ansible-playbook play-test.yaml
PLAY [test] ********************************************************************************************
TASK [test pubkey] **************************************************************************************
fatal: [test]: FAILED! => {"changed": false, "msg": "invalid key specified: [email protected] AAAAInNrLWVjZHNhLXNoYTItbmlzdHAyNTZAb3BlbnNzaC5jb20AAAAIbmlzdHAyNTYAAABBBI6ehr2PuvCMscCnNypBrLudMZn1DzwQPV/QX8AZ6QhdOt5nAvZv2Hk/WrjNIoYfqZYgQan/J0vHThfRbLVtYboAAAAEc3NoOg== ansikey@host"}
PLAY RECAP **********************************************************************************************
test : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Tags are needed for Collection v1.0
python3.8
which ansible -m ansible.posix.synchronize -a 'src=/etc/skel dest=/var/tmp/badger' localhost -vvvv
gives a message that it can't find the synchronize module. the problem is that the synchronize action plugin uses a short name for the module when it tries to invoke it here: https://github.com/ansible-collections/ansible.posix/blob/master/plugins/action/synchronize.py#L418
There is a PR being worked on for ansible-base which should eventually fix this (allowing legacy names to be used for modules which were in ansible/ansible before) but updating this to use the FQCN will get this working now and arguably is the right code in the long term as well.
Fix this by changing:
- result.update(self._execute_module('synchronize', module_args=_tmp_args, task_vars=task_vars))
+ result.update(self._execute_module('ansible.posix.synchronize', module_args=_tmp_args, task_vars=task_vars))
2.10.0
N/A
Any
ansible -m ansible.posix.synchronize -a 'src=/etc/skel dest=/var/tmp/badger' localhost -vvvv
synchronize module transfers /etc/skel to into /var/tmp/badger/
Error message:
localhost | FAILED! => {
"msg": "The module synchronize was not found in configured module paths"
}
As per NetworkManager and firewalld - Zone is lost on network restart, this ansible firewalld module is unable to persist zone settings for interfaces. This can be enhanced/compensated for by also running a nmcli connection modify conn_name connection.zone zone_name
command if the interface is managed by network managed. Unfortunately, the current ansible nmcli
module does not expose zone settings.
firewalld
ansible 2.9.11
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.17 (default, Jul 20 2020, 15:37:01) [GCC 7.5.0]
ANSIBLE_PIPELINING(ansible.cfg) = True
ANSIBLE_SSH_ARGS(ansible.cfg) = -o ServerAliveInterval=30 -o ControlMaster=auto -o ControlPersist=60s -o PreferredAuthentications=publickey,password,keyboard-interactive
DEFAULT_BECOME_METHOD(ansible.cfg) = sudo
DEFAULT_GATHERING(ansible.cfg) = smart
DEFAULT_HASH_BEHAVIOUR(ansible.cfg) = merge
Ubuntu 16.04/18.04 LTS control host, CentOS 7.8 target
- name: Set zone for the internal network
become: true
firewalld:
permanent: true
immediate: true
zone: internal
interface: eth0
state: enabled
The firewall zone was set after rebooting or restarting firewalld
The change is forgotten and interface switches back to the default public zone
E.g. after running play
# firewall-cmd --zone=internal --list-all
internal
target: default
icmp-block-inversion: no
interfaces: eth0
...
E.g. after systemctl restart firewalld
, interfaces empty.
# firewall-cmd --zone=internal --list-all
internal
target: default
icmp-block-inversion: no
interfaces:
...
Copied from original issue: ansible/ansible#41738
This collection will be included in Ansible 2.10 because it contains modules and/or plugins that were included in Ansible 2.9. Please review:
The latest version of the collection available on August 18 will be included in Ansible 2.10.0, except possibly newer versions which differ only in the patch level. (For details, see the roadmap). Please release version 1.0.0 of your collection by this date! If 1.0.0 does not exist, the same 0.x.y version will be used in all of Ansible 2.10 without updates, and your 1.x.y release will not be included until Ansible 2.11 (unless you request an exception at a community working group meeting and go through a demanding manual process to vouch for backwards compatibility . . . you want to avoid this!).
Your collection versioning must follow all semver rules. This means:
Your collection should provide data for the Ansible 2.10 changelog and porting guide. The changelog and porting guide are automatically generated from ansible-base, and from the changelogs of the included collections. All changes from the breaking_changes
, major_changes
, removed_features
and deprecated_features
sections will appear in both the changelog and the porting guide. You have two options for providing changelog fragments to include:
changelogs/changelog.yaml
inside your collection (see the documentation of changelogs/changelog.yaml format).If you cannot contribute to the integrated Ansible changelog using one of these methods, please provide a link to your collection's changelog by creating an issue in https://github.com/ansible-community/ansible-build-data/. If you do not provide changelogs/changelog.yml
or a link, users will not be able to find out what changed in your collection from the Ansible changelog and porting guide.
Run ansible-test sanity --docker -v
in the collection with the latest ansible-base or stable-2.10
ansible/ansible checkout.
Be sure you're subscribed to:
If you have questions or want to provide feedback, please see the Feedback section in the collection requirements.
(Internal link to keep track of issues: ansible-collections/overview#102)
The json callback plugin return multiple json results when multiple playbooks are executed.
This issue has been pointed out previously in the issue #38804
ansible 2.9.14
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/lbenedit/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.8/site-packages/ansible
executable location = /usr/bin/ansible
python version = 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]
ANSIBLE_STDOUT_CALLBACK=json
Create 2 playbooks:
play1.yml:
---
- hosts: all
gather_facts: false
tasks:
- name: Play 1
debug: msg="This is play 1"
play2.yml:
---
- hosts: all
gather_facts: false
tasks:
- name: Play 2
debug: msg="This is play 2"
And execute them using the json callback plugin:
$ ANSIBLE_STDOUT_CALLBACK=json ansible-playbook -i localhost, play1.yml play2.yml
A valid json structure
# ANSIBLE_STDOUT_CALLBACK=json ansible-playbook -i localhost, play1.yml play2.yml | json_verify
JSON is valid
#
# ANSIBLE_STDOUT_CALLBACK=json ansible-playbook -i localhost, play1.yml play2.yml | json_verify
parse error: trailing garbage
{ "custom_stats": {},
(right here) ------^
JSON is invalid
#
{
"custom_stats": {},
"global_custom_stats": {},
"plays": [
{
"play": {
"duration": {
"end": "2020-10-27T12:12:51.186216Z",
"start": "2020-10-27T12:12:51.172245Z"
},
"id": "58961d97-78ae-5e1e-8808-000000000006",
"name": "all"
},
"tasks": [
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"_ansible_verbose_always": true,
"action": "debug",
"changed": false,
"msg": "This is play 1"
}
},
"task": {
"duration": {
"end": "2020-10-27T12:12:51.186216Z",
"start": "2020-10-27T12:12:51.179208Z"
},
"id": "58961d97-78ae-5e1e-8808-000000000008",
"name": "Play 1"
}
}
]
}
],
"stats": {
"localhost": {
"changed": 0,
"failures": 0,
"ignored": 0,
"ok": 1,
"rescued": 0,
"skipped": 0,
"unreachable": 0
}
}
}
{
"custom_stats": {},
"global_custom_stats": {},
"plays": [
{
"play": {
"duration": {
"end": "2020-10-27T12:12:51.186216Z",
"start": "2020-10-27T12:12:51.172245Z"
},
"id": "58961d97-78ae-5e1e-8808-000000000006",
"name": "all"
},
"tasks": [
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"_ansible_verbose_always": true,
"action": "debug",
"changed": false,
"msg": "This is play 1"
}
},
"task": {
"duration": {
"end": "2020-10-27T12:12:51.186216Z",
"start": "2020-10-27T12:12:51.179208Z"
},
"id": "58961d97-78ae-5e1e-8808-000000000008",
"name": "Play 1"
}
}
]
},
{
"play": {
"duration": {
"end": "2020-10-27T12:12:51.199701Z",
"start": "2020-10-27T12:12:51.189341Z"
},
"id": "58961d97-78ae-5e1e-8808-00000000001a",
"name": "all"
},
"tasks": [
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"_ansible_verbose_always": true,
"action": "debug",
"changed": false,
"msg": "This is play 2"
}
},
"task": {
"duration": {
"end": "2020-10-27T12:12:51.199701Z",
"start": "2020-10-27T12:12:51.191727Z"
},
"id": "58961d97-78ae-5e1e-8808-00000000001c",
"name": "Play 2"
}
}
]
}
],
"stats": {
"localhost": {
"changed": 0,
"failures": 0,
"ignored": 0,
"ok": 2,
"rescued": 0,
"skipped": 0,
"unreachable": 0
}
}
}
When a new nfs mount source path is specified and a mount path is already used by a different NFS device, the mount module doesn't behave as expected.
mount
ansible 2.9.11
- name: mount the filesystem
mount:
path: "/mnt/nfs"
src: "nfs-server-1:/export/nfs"
fstype: nfs
state: mounted
- name: mount the filesystem
mount:
path: "/mnt/nfs"
src: "nfs-server-2:/export/nfs"
fstype: nfs
state: mounted
The most recent NFS source path should be mounted, i.e. nfs-server-2:/export/nfs
Nothing changes apart from the fstab entry, nfs-server-1:/export/nfs
remains mounted.
See for example https://app.shippable.com/github/ansible-collections/ansible.posix/runs/328/summary/console
CI
Migration of ansible/ansible#48134:
Ability to perform temporary mounts without altering /etc/fstab
. Currently anything done with the mount module needs to manipulate /etc/fstab
.
Additional parameter is needed to perform temporary mounts, such as with an ISO image that would be unmounted later in a play. Currently this can't be done with the mount module, as altering the /etc/fstab
is required. Maybe call this additional parameter modify_fstab
of type bool
. Currently the only way to achieve this is via the command
module using direct mount/unmount commands.
mount, fstab
To mount an ISO image temporarily for pulling in data, but not make an entry in /etc/fstab
.
- name: Mount an ISO Temporarily
mount:
src: /path/to/my/iso.iso
path: /path/to/mount/my/iso
fstype: iso9660
opts: ro
modify_fstab: no
state: mounted
- name: Unmount an ISO
mount:
path: /path/to/unmount/my/iso
modify_fstab: no
state: unmounted
Sometimes I get public keys to be installed sent via E-Mail. Since some Mailsystems (esp. Microsoft ones) tend to break code by trying to improve readability keys tend to be unusable after going through certain systems.
While I already know to look for newlines in places they should not be, sometimes it happens that I plain forget to check keys before copying them over.
I was hoping that authorized_key
would either correct the key or at least throw an error if the key is unusable in the current form.
In my humble opinion it would be enough to search for the different styles of newlines but there might be more possible breakpoints.
authorized_key
All was said in the summary. The module should check if keys it rolls out are actually usable to log in. Not by testing but by searching for characters/linebreaks that won't work in a key.
See https://github.com/ansible-collections/ansible.posix/blob/master/plugins/callback/skippy.py#L17
plugins/callback/skippy.py
devel
This RFE is to have a chdir
parameter, similar to what's currently available for the shell
module, added to the at
module.
When using at
with the ansible-pull
and the --purge
option the job will fail since the execution directory is being removed.
As a workaround, the at
job can be scheduled using the shell module.
at.py
cmd:
ansible-pull -U https://github.com/benjdudas/ansible_pull.git -i hosts --purge
local.yml
---
- hosts: local
connection: local
gather_facts: false
tasks:
- name: run logger in 2 minutes
at:
command: /bin/logger 'AT task ran from Ansible'
count: 2
units: minutes
unique: yes
environment:
PWD: /root
- name: copy job file
copy:
src: ./myjob.txt
dest: /root/myjob.txt
- name: testing with shell mod, runs date in 2 min
shell:
chdir: /root
cmd: at now + 2 min -f myjob.txt
- name: cleanup job file
file:
path: /root/myjob.txt
state: absent
...
mail logs:
From [email protected] Tue Apr 14 11:59:00 2020
Return-Path: <[email protected]>
X-Original-To: vagrant
Delivered-To: [email protected]
Received: by rhel-awx.localdomain (Postfix, from userid 0)
id 9F4431067836; Tue, 14 Apr 2020 11:59:00 -0400 (EDT)
Subject: Output from your job 36
To: [email protected]
Message-Id: <[email protected]>
Date: Tue, 14 Apr 2020 11:59:00 -0400 (EDT)
From: [email protected] (root)
sh: line 31: cd: /root/.ansible/pull/rhel-awx: No such file or directory
Execution directory inaccessible
From [email protected] Tue Apr 14 12:00:00 2020
Return-Path: <[email protected]>
X-Original-To: vagrant
Delivered-To: [email protected]
Received: by rhel-awx.localdomain (Postfix, from userid 0)
id CCF951067836; Tue, 14 Apr 2020 12:00:00 -0400 (EDT)
Subject: Output from your job 38
To: [email protected]
Message-Id: <[email protected]>
Date: Tue, 14 Apr 2020 12:00:00 -0400 (EDT)
From: [email protected] (root)
Tue Apr 14 12:00:00 EDT 2020
The first mail was from the at
task (run logger in 2 minutes) showing "Execution directory inaccessible". The second mail log is from the shell task (testing with shell mod, runs date in 2 min) running /bin/date with at
.
When I run a task using the authorized_key module in checking_mode and register the result, it does not contain any return values.
authorized_key
ansible 2.9.9
config file = /home/gregory/.ansible.cfg
configured module search path = ['/home/gregory/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/gregory/.local/lib/python3.7/site-packages/ansible
executable location = /home/gregory/.local/bin/ansible
python version = 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0]
- name: check if an authorized_key change is needed
authorized_key:
user: gregory
key: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQB2tZ7l62JQCTgr88sZseQp6L7syhg+a7 Gregory
check_mode: true
register: authkey_change
- name: check if a group change is needed for a user
user:
name: gregory
group: gregory
check_mode: true
register: group_change
- debug:
var: authkey_change
- debug:
var: group_change
I would expect that the authkey_change variable contains the return values from the authorized_key
task, like the group_change does have from the user
task.
The authorized_key module does not have any return values in checking_mode.
TASK [test : debug] *****************************************************************************************************************************************************************************************************************************************
ok: [buster] => {
"authkey_change": {
"changed": false,
"failed": false
}
}
TASK [test : debug] *****************************************************************************************************************************************************************************************************************************************
ok: [buster] => {
"group_change": {
"append": false,
"changed": false,
"comment": "",
"failed": false,
"group": 1000,
"home": "/home/gregory",
"move_home": false,
"name": "gregory",
"shell": "/bin/bash",
"state": "present",
"uid": 1000
}
}
firewalld module should support management of port forwards that were created via the --add-forward-port option
$ firewall-cmd --add-forward-port=port=500:proto=tcp:toport=3753
firewalld module
The documentation allows for creating and modifying "rich rules" for managing forwards, however forwards that are already in place on the system cannot be managed without using the command module. So you could possibly have competing forwards in place, and I am not sure which one would win.
when using synchronize
with loop
, if an item has the same name as the containing folder, the source path becomes corrupt.
synchronize
ansible 2.7.0
config file = /home/user/ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/venv/lib64/python3.6/site-packages/ansible
executable location = ./venv/bin/ansible
python version = 3.6.3 (default, Jan 4 2018, 16:40:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
DEFAULT_HOST_LIST(/home/user/ansible.cfg) = ['/home/user/etc/ansible/hosts']
RETRY_FILES_ENABLED(/home/user/ansible.cfg) = False
CentOS Linux release 7.5.1804
folder structure:
test
test/etc
test/etc/ansible
test/etc/ansible/test-ansible.yml
test/test <-------------- munged path
test/test/a_file
test/test1
test/test1/b_file
test-ansible.yml
:
---
- hosts: localhost
tasks:
- name: rsync project files
synchronize:
src: "../../{{ item }}" # relative to playbook location: etc/ansible/../.. -> test/
dest: "/tmp/destination/{{ item }}"
loop:
- test/ # should translate to 'test/test/', munged to 'test/'
- test1/ # correctly translates to 'test'/test1/'
test$ ansible-playbook -v etc/ansible/test-ansible.yml
/tmp/destination
/tmp/destination/test
/tmp/destination/test/a_file
/tmp/destination/test1
/tmp/destination/test1/b_file
/tmp/destination/test
/tmp/destination/test/test
/tmp/destination/test/test/a_file
/tmp/destination/test/test1
/tmp/destination/test/test1/b_file
/tmp/destination/test/etc
/tmp/destination/test/etc/ansible
/tmp/destination/test/etc/ansible/test-ansible.yml
/tmp/destination/test1
/tmp/destination/test1/b_file
TASK [rsync project files] ****************************************************************
changed: [localhost] => (item=test/) => {
"changed": true,
"cmd": "/usr/local/bin/rsync --delay-updates -F --compress --archive --out-format=<<CHANGED>>%i %n%L /home/user/tmp/test/ /tmp/destination/test/",
"invocation": {
"module_args": {
"_local_rsync_path": "rsync",
"_substitute_controller": false,
"archive": true,
"checksum": false,
"compress": true,
"copy_links": false,
"delete": false,
"dest": "/tmp/destination/test/",
"dest_port": null,
"dirs": false,
"existing_only": false,
"group": null,
"link_dest": null,
"links": null,
"mode": "push",
"owner": null,
"partial": false,
"perms": null,
"private_key": null,
"recursive": null,
"rsync_opts": [],
"rsync_path": null,
"rsync_timeout": 0,
"set_remote_user": true,
"src": "/home/user/tmp/test/", # <----- this should be /home/user/tmp/test/test/
"ssh_args": null,
"times": null,
"verify_host": false
}
},
"item": "test/",
"msg": "cd++++++++++ ./\ncd++++++++++ etc/\ncd++++++++++ etc/ansible/\n>f++++++++++ etc/ansible/test-ansible.yml\ncd++++++++++ test/\n>f++++++++++ test/a_file\n",
"rc": 0,
"stdout_lines": [
"cd++++++++++ ./",
"cd++++++++++ etc/",
"cd++++++++++ etc/ansible/",
">f++++++++++ etc/ansible/test-ansible.yml",
"cd++++++++++ test/",
">f++++++++++ test/a_file",
"cd++++++++++ test1/",
">f++++++++++ test1/b_file"
]
}
changed: [localhost] => (item=test1/) => {
"changed": true,
"cmd": "/usr/local/bin/rsync --delay-updates -F --compress --archive --out-format=<<CHANGED>>%i %n%L /home/user/tmp/test/test1/ /tmp/destination/test1/",
"invocation": {
"module_args": {
"_local_rsync_path": "rsync",
"_substitute_controller": false,
"archive": true,
"checksum": false,
"compress": true,
"copy_links": false,
"delete": false,
"dest": "/tmp/destination/test1/",
"dest_port": null,
"dirs": false,
"existing_only": false,
"group": null,
"link_dest": null,
"links": null,
"mode": "push",
"owner": null,
"partial": false,
"perms": null,
"private_key": null,
"recursive": null,
"rsync_opts": [],
"rsync_path": null,
"rsync_timeout": 0,
"set_remote_user": true,
"src": "/home/user/tmp/test/test1/",
"ssh_args": null,
"times": null,
"verify_host": false
}
},
"item": "test1/",
"msg": "cd++++++++++ ./\n>f++++++++++ b_file\n",
"rc": 0,
"stdout_lines": [
"cd++++++++++ ./",
">f++++++++++ b_file"
]
}
It would be nice if Ansible was able to query firewalld rules by the firewalld module parameters.
firewalld module
It would be very useful for audits and access management.
At the time of writing this issue, we can only ensure that specific rule is at expected state using firewalld module.
For example there's no way of removing all rules for port 22 except the ones we want to keep.
The ability to query rules solves this problem, as we could just loop through the result.
Example tasks:
- firewalld_query:
port: 22
state: enabled
register: query_result
- debug:
var: query_result.firewalld_query
Example result:
[
{
"zone": "public",
"state": "enabled",
"port": "22/tcp",
"source": "1.0.0.1",
"permanent": true
}
]
When using the 'at' module with become_user the command fails to run at the specified time since it cannot cd to the ansible-moduletmp directory
at
ansible 2.8.8
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
ANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True
ANSIBLE_SSH_ARGS(/etc/ansible/ansible.cfg) = -C -o ControlMaster=auto -o ControlPersist=60s
DEFAULT_CALLBACK_WHITELIST(/etc/ansible/ansible.cfg) = [u'profile_tasks']
DEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 30
- hosts: webservers
become: yes
become_user: www
tasks:
- name: Schedule deletion of file
at:
command: /bin/rm -f /path/to/file
count: 1
units: minutes
The created at job should run successfully
The at job as created is not able to run
After executing that playbook check the at job on the remote server with at -c <jobNumber>
, it will have a block like this:
cd /home/www/\.ansible/tmp/ansible\-moduletmp\-1591113713\.1\-INQokB || {
echo 'Execution directory inaccessible' >&2
exit 1
}
${SHELL:-/bin/sh} << 'marcinDELIMITER20f59fd4'
/bin/rm -f /path/to/file
marcinDELIMITER20f59fd4
It seems that the tmp directory specified no longer exists when the at job tries to run and so it fails every time.
This appears to be specific to using become_user. When using remote_user instead there is no problem; at -c <jobNumber>
shows this instead:
cd /home/www || {
echo 'Execution directory inaccessible' >&2
exit 1
}
${SHELL:-/bin/sh} << 'marcinDELIMITER1a17d519'
/bin/rm -f /path/to/file
marcinDELIMITER1a17d519
This seems like it may be solvable in a similar way as #13, but I'd love to know if there is some other option or workaround I might be able to try?
Copy
It could be useful for the sysctl module to have a 'create' parameter similar to many other file related modules. This would make it easier to modify settings in a sysctl file only if it already exists. Having create: no would not create the settings file. Having create: yes (default) would create the settings file if it does not yet exist.
sysctl
Having a 'create' parameter would reduce the code necessary to handle a situation when you don't want to create the setting file but only modify a possibly existing one.
- name: Modify the existing sysctl hardening file
sysctl:
state: present
sysctl_file: '/etc/sysctl.d/hardening.conf'
create: no
name: '{{ item }}'
value: '1'
loop:
- net.ipv4.conf.all.log_martians
- net.ipv4.conf.default.log_martians
When the host running ansible has the ansible_ssh_pass
or ansible_password
variables set and the synchronize
module is used to sync 2 local paths then the module attempts to use sshpass
. This even occurs when connection: local
is set in the playbook.
synchronize
ansible 2.9.4
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
ANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True
DEFAULT_CALLBACK_WHITELIST(/etc/ansible/ansible.cfg) = [u'profile_tasks']
DEFAULT_HASH_BEHAVIOUR(/etc/ansible/ansible.cfg) = merge
RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False
Confirmed on CentOS 7.7.1908
---
- hosts: localhost
connection: local
gather_facts: no
tasks:
- name: generate dummy paths
file:
state: directory
path: '/tmp/{{ item }}'
loop:
- t1
- t2
- name: sync dummy files
synchronize:
src: /tmp/t1
dest: /tmp/t2
archive: yes
checksum: yes
times: no
...
The rsync completes successfully even with ansible_ssh_pass
/ansible_password
set.
TASK [sync dummy files] *******************************************************************************************************************************************************************************************
Tuesday 18 February 2020 14:11:06 +0000 (0:00:00.365) 0:00:00.407 ******
ok: [localhost]
TASK [sync dummy files] *******************************************************************************************************************************************************************************************
Tuesday 18 February 2020 14:10:25 +0000 (0:00:00.353) 0:00:00.395 ******
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "sshpass -d8 /usr/bin/rsync --delay-updates -F --compress --checksum --archive --no-times '--out-format=<<CHANGED>>%i %n%L' /tmp/t1 /tmp/t2", "msg": "[Errno 32] Broken pipe", "rc": 32}
Migrated from: ansible/ansible#71220
In our environment, for most systems, /bin/sh is linked to /bin/bash, but on some hosts it is /bin/dash.
We use 'set -eo pipefail' in our shell rules, so we need to always use /bin/bash.
To simplify having to set this in every task, we set executable=/bin/bash in ansible.cfg
Doing so causes an error using the synchronize module:
synchronize works fine without this setting.
On the controller, /bin/sh is symlinked to /bin/dash
On the inventory_host, /bin/sh is symlinked to /bin/bash
/bin/bash is available on both hosts
synchronize
ansible 2.9.10
config file = /home/user/ansible/ansible.cfg
configured module search path = [u'/home/user/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/share/ansible/local/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
ANSIBLE_PIPELINING(/home/user/ansible/ansible.cfg) = True
ANSIBLE_SSH_ARGS(/home/user/ansible/ansible.cfg) = -C -o ControlMaster=auto -o ControlPersist=60s -o HostKeyAlgorithms=+ssh-dss
DEFAULT_BECOME_METHOD(/home/user/ansible/ansible.cfg) = su
DEFAULT_EXECUTABLE(/home/user/ansible/ansible.cfg) = /bin/bash
DEFAULT_GATHER_TIMEOUT(/home/user/ansible/ansible.cfg) = 30
DEFAULT_REMOTE_PORT(/home/user/ansible/ansible.cfg) = 22222
DEFAULT_TIMEOUT(//hme/user/ansible/ansible.cfg) = 30
DEFAULT_VAULT_PASSWORD_FILE(/home/user/ansible/ansible.cfg) = /home/user/ansible/scripts/passwordgen.sh
HOST_KEY_CHECKING(/home/user/ansible/ansible.cfg) = False
INTERPRETER_PYTHON(/home/user/ansible/ansible.cfg) = /usr/local/bin/python3.6.3a
Controller OS: Ubuntu 16.04
Iventory host OS: SLES11SP4
playbook:
- hosts:
inventory_hostname
- tasks:
- name: broken
synchronize:
src: localdir/
dest: /remotedir/
owner: no
group: no
perms: no
synchornize should succeed
Results:
TASK [broken] *******************************************************************************************************************************************************************
fatal: [hostname]: FAILED! => {"msg": "Could not find the shell plugin required (bash)."}
This is regarding the error in the title of this report when running molecule tests
using docker
and the synchronize
module. Here is my setup:
macbookC
serverB
root
serverA
(details below).Docker
containers (image: geerlingguy/docker-centos7-ansible
).Goal: Using molecule to test the task to synchronize all the files in serverA:/opt/appowner/appdir/app/
to serverB:/opt/appowner/appdir/app/
.
Ownership: All these files and directories are owned by the application user called appowner
.
Here is the task in question:
- name: Synchronize configs from serverA to serverB
become: true
become_user: appowner
synchronize:
src: "/opt/appowner/appdir/app/"
dest: "/opt/appowner/appdir/app/"
set_remote_user: false
rsync_path: "/bin/rsync"
rsync_opts:
- "--prune-empty-dirs"
delegate_to: "serverA"
when: inventory_hostname == "serverB"
synchronize
module
ansible 2.9.4
config file = /Users/myuser/PROJECTS/ansibledevel/ansible.cfg
configured module search path = ['/Users/myuser/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Library/Python/3.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.7.3 (default, Dec 13 2019, 19:58:14) [Clang 11.0.0 (clang-1100.0.33.17)]
ANSIBLE_PIPELINING(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = True
DEFAULT_CALLBACK_WHITELIST(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['profile_tasks']
DEFAULT_INVENTORY_PLUGIN_PATH(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['/Users/myuser/PROJECTS/ansibledevel/additional_plugins/inventory']
DEFAULT_LOOKUP_PLUGIN_PATH(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['/Users/myuser/PROJECTS/ansibledevel/additional_plugins/lookup']
DEFAULT_ROLES_PATH(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['/Users/myuser/PROJECTS/ansibledevel/roles', '/etc/ansible/roles']
DEFAULT_STDOUT_CALLBACK(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = skippy
INVENTORY_ENABLED(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['host_list', 'script', 'yaml', 'auto', 'ini', 'tpm_inventory']
Ansible controller: macOS Catalina, Docker version 19.03.8, build afacb8b
Ansible hosts serverA
and serverB
: containers using geerlingguy/docker-centos7-ansible
.
docker
and a CentOS 7 image (ex. geerlingguy/docker-centos7-ansible
).appowner
./opt/appowner/appdir/app/
on both containers.molecule test
The task should successfully synchronize the directory from serverA to serverB.
The task fails with: rsync: Failed to exec /usr/bin/docker: No such file or directory
.
TASK [app-setup : Synchronize configs from serverA to serverB] ***************
fatal: [serverB -> serverA]: FAILED! => {"changed": false, "cmd": "/bin/rsync --delay-updates -F --compress --archive --rsync-path=/bin/rsync --prune-empty-dirs --blocking-io --rsh=/usr/local/bin/docker exec -u appowner -i --out-format=<<CHANGED>>%i %n%L /opt/appowner/appdir/app/ serverB:/opt/appowner/appdir/app/", "msg": "rsync: Failed to exec /usr/local/bin/docker: No such file or directory (2)\nrsync error: error in IPC code (code 14) at pipe.c(85) [sender=3.1.2]\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: error in IPC code (code 14) at io.c(226) [sender=3.1.2]\n", "rc": 14}
macOS
ansible controller is also the Docker host since it is running the molecule tests.macOS
ansible controller, /usr/local/bin/docker
exists:lrwxr-xr-x 1 myuser admin 54 Jan 28 11:30 /usr/local/bin/docker -> /Applications/Docker.app/Contents/Resources/bin/docker
macOS
machine.CentOS
build server, the task completes successfully.ansible-playbook
command, the task completes successfully.Thanks in advance for any help.
Cheers.
A zone can have many services and sources associated with it. Allow passing a list to the source parameter of firewalld like you can with yum/dnf.
firewalld
- name: "Define internal zone"
firewalld:
service:
- http
- https
source:
- 192.168.0.0/16
- 10.0.0.0/8
zone: internal
immediate: yes
permanent: yes
state: enabled
There were tasks:
closed due to migration to collections.
Docs:
don't mention swap support. I believe it is not implemented.
There are two things here:
/etc/fstab
swapon
/swapoff
.Currently boot
option only applies to Solaris. It would be nice to support it on a wider range of operating systems.
mount
fstab
.(migrated from ansible/ansible#63337)
Using the offline
flag to the firewalld
has absolutely no effect on behaviour. Looking at the code I can not find any reference to the option beyond parsing it.
firewalld
ansible 2.8.5
config file = /local/home/ossman/devel/ansible/ansible.cfg
configured module search path = ['/home/ossman/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 3.7.3 (default, Mar 27 2019, 13:36:35) [GCC 9.0.1 20190227 (Red Hat 9.0.1-0.8)]
[defaults]
stdout_callback = yaml
Target is a Red Hat Enterprise Linux 7 machine.
Ansible is run on a Fedora 30 machine.
- name: disable firewalld
service:
name: firewalld
enabled: no
state: stopped
- name: allow NRPE in firewall
firewalld:
service: nrpe
permanent: yes
immediate: yes
offline: yes # firewalld might be disabled on some machines
state: enabled
TASK [server : allow NRPE in firewall] ******************************************************************
ok: [host.example.com]
TASK [server : allow NRPE in firewall] ******************************************************************
fatal: [host.example.com]: FAILED! => changed=false
msg: firewall is not currently running, unable to perform immediate actions without a running firewall daemon
SELinux moduled does not add new SELINUXTYPE line in /etc/selinux/config when that line does not exits.
selinux
ansible 2.9.7 python version = 3.8.2 (default, Mar 13 2020, 10:14:16) [GCC 9.3.0]
Ansible tasks
- name: "1.6.1.2 - Ensure the SELinux state is enforcing"
selinux:
policy: targeted
state: enforcing
register: tmp
# For detailed information, no need for production.
- debug:
msg: "{{ tmp }}"
/etc/selinux/config
# No SELINUXTYPE setting on the conf file
# selinux module works well when the line exists.
SELINUX=disabled
/etc/selinux/config
SELINUX=enforcing
SELINUXTYPE=targeted
/etc/selinux/config
SELINUX=enforcing
tasks log
TASK [cis_rhel7 : 1.6.1.2 - Ensure the SELinux state is enforcing] [WARNING]: Reboot is required to set SELinux state to 'enforcing'
changed: [10.0.0.129]
TASK [cis_rhel7 : debug] *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [10.0.0.129] => {
"msg": {
"changed": true,
"configfile": "/etc/selinux/config",
"failed": false,
"msg": "SELinux policy configuration in '/etc/selinux/config' changed from 'None' to 'targeted'",
"policy": "targeted",
"reboot_required": true,
"state": "enforcing",
"warnings": [
"Reboot is required to set SELinux state to 'enforcing'"
]
}
}
task log says "policy was changed to targeted" but not reflected to the config file.
In Ansible 2.9.11 running on rhel 8, synchronize module fails to transfer with '[Errno 2] No such file or directory' in similar fashion as in #56629.
All suggestions from the previous issue were followed and i was unable to solve it. The only way to avoid the issue is to use ssh-key based connection as it doesn't use sshpass.
synchronize
ansible 2.9.11
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 3.6.8 (default, Dec 5 2019, 15:45:45) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
Red Hat Enterprise Linux release 8.2 (Ootpa)
freshly installed RHEL 8 environment without any customization.
mkdir /tmp/testdir ; echo 'Ansible Managed' >> /tmp/testdir/file-transfer
---
- name: Sync between servers
hosts: all
tasks:
- name: Transfering from between servers using delegate
synchronize:
src: /tmp/testdir
dest: /tmp
delegate_to: source_server
$ ansible-playbook sync.yml -i inventory
PLAY [Sync between servers] ******************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
ok: [ec2-3-249-227-122.eu-west-1.compute.amazonaws.com]
TASK [Transfering from between servers using delegate] ***************************************************************************************************************************************************************************************
changed: [ec2-3-249-227-122.eu-west-1.compute.amazonaws.com -> ec2-3-249-85-67.eu-west-1.compute.amazonaws.com]
PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
ec2-3-249-227-122.eu-west-1.compute.amazonaws.com : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
$
$ ansible-playbook sync.yml -i inventory -u ansible -k -vvv
ansible-playbook 2.9.11
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.6.8 (default, Dec 5 2019, 15:45:45) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
Using /etc/ansible/ansible.cfg as config file
SSH password:
host_list declined parsing /home/ansible/inventory as it did not pass its verify_file() method
script declined parsing /home/ansible/inventory as it did not pass its verify_file() method
auto declined parsing /home/ansible/inventory as it did not pass its verify_file() method
Parsed /home/ansible/inventory inventory source with ini plugin
PLAYBOOK: sync.yml ***************************************************************************************************************************************************************************************************************************
1 plays in sync.yml
PLAY [Sync between servers] ******************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
task path: /home/ansible/sync.yml:2
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ce7441570e ec2-3-249-227-122.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'echo ~ansible && sleep 0'"'"''
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> (0, b'/home/ansible\n', b'')
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ce7441570e ec2-3-249-227-122.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir /home/ansible/.ansible/tmp/ansible-tmp-1598346765.0777154-5325-64035331839151 && echo ansible-tmp-1598346765.0777154-5325-64035331839151="` echo /home/ansible/.ansible/tmp/ansible-tmp-1598346765.0777154-5325-64035331839151 `" ) && sleep 0'"'"''
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> (0, b'ansible-tmp-1598346765.0777154-5325-64035331839151=/home/ansible/.ansible/tmp/ansible-tmp-1598346765.0777154-5325-64035331839151\n', b'')
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> Attempting python interpreter discovery
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ce7441570e ec2-3-249-227-122.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> (0, b'PLATFORM\nLinux\nFOUND\n/usr/libexec/platform-python\nENDFOUND\n', b'')
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ce7441570e ec2-3-249-227-122.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'/usr/libexec/platform-python && sleep 0'"'"''
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> (0, b'{"platform_dist_result": ["redhat", "8.2", "Ootpa"], "osrelease_content": "NAME=\\"Red Hat Enterprise Linux\\"\\nVERSION=\\"8.2 (Ootpa)\\"\\nID=\\"rhel\\"\\nID_LIKE=\\"fedora\\"\\nVERSION_ID=\\"8.2\\"\\nPLATFORM_ID=\\"platform:el8\\"\\nPRETTY_NAME=\\"Red Hat Enterprise Linux 8.2 (Ootpa)\\"\\nANSI_COLOR=\\"0;31\\"\\nCPE_NAME=\\"cpe:/o:redhat:enterprise_linux:8.2:GA\\"\\nHOME_URL=\\"https://www.redhat.com/\\"\\nBUG_REPORT_URL=\\"https://bugzilla.redhat.com/\\"\\n\\nREDHAT_BUGZILLA_PRODUCT=\\"Red Hat Enterprise Linux 8\\"\\nREDHAT_BUGZILLA_PRODUCT_VERSION=8.2\\nREDHAT_SUPPORT_PRODUCT=\\"Red Hat Enterprise Linux\\"\\nREDHAT_SUPPORT_PRODUCT_VERSION=\\"8.2\\"\\n"}\n', b'')
Using module file /usr/lib/python3.6/site-packages/ansible/modules/system/setup.py
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> PUT /home/ansible/.ansible/tmp/ansible-local-5318rvb_n_o4/tmpqn949450 TO /home/ansible/.ansible/tmp/ansible-tmp-1598346765.0777154-5325-64035331839151/AnsiballZ_setup.py
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ce7441570e '[ec2-3-249-227-122.eu-west-1.compute.amazonaws.com]'
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-5318rvb_n_o4/tmpqn949450 /home/ansible/.ansible/tmp/ansible-tmp-1598346765.0777154-5325-64035331839151/AnsiballZ_setup.py\n', b'')
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ce7441570e ec2-3-249-227-122.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1598346765.0777154-5325-64035331839151/ /home/ansible/.ansible/tmp/ansible-tmp-1598346765.0777154-5325-64035331839151/AnsiballZ_setup.py && sleep 0'"'"''
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> (0, b'', b'')
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ce7441570e -tt ec2-3-249-227-122.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'/usr/libexec/platform-python /home/ansible/.ansible/tmp/ansible-tmp-1598346765.0777154-5325-64035331839151/AnsiballZ_setup.py && sleep 0'"'"''
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> (0, b'\r\n{"ansible_facts": {"ansible_user_id": "ansible", "ansible_user_uid": 1001, "ansible_user_gid": 1001, "ansible_user_gecos": "", "ansible_user_dir": "/home/ansible", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 1001, "ansible_effective_user_id": 1001, "ansible_real_group_id": 1001, "ansible_effective_group_id": 1001, "ansible_dns": {"search": ["eu-west-1.compute.internal"], "nameservers": ["172.31.0.2"]}, "ansible_system": "Linux", "ansible_kernel": "4.18.0-193.el8.x86_64", "ansible_kernel_version": "#1 SMP Fri Mar 27 14:35:58 UTC 2020", "ansible_machine": "x86_64", "ansible_python_version": "3.6.8", "ansible_fqdn": "ip-172-31-23-42.eu-west-1.compute.internal", "ansible_hostname": "ip-172-31-23-42", "ansible_nodename": "ip-172-31-23-42.eu-west-1.compute.internal", "ansible_domain": "eu-west-1.compute.internal", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "c91021a7ea684c2681af7bd9d965c2c5", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCcV4gj3QVLcr2SICCZJZoSqZjhKRO6XOP1AeJO3SeD0Iunxx/8OKcT4gDOpGoiar6wbsO6XQNMddV4rt1ewjj+IjaKgRGYb0UeGrDQi9ZIE3IAdfvZGUDNST0KiEry/CJ9P+BVNeYk0V9VNS9ffK08AkYuqR7l5Mn6BmwIugQXJWPMU9cJpAajobCagaUKy2NX7I13FPKO1vAGW8Oy+EarHAAKjRlZB3t3pVNB1NdDBqrVdeqfB6wFjGKG+whgsNv/WG8omyJp90vWZcnU+jZECphnCG25H1HII1mFh5h99NjYhI3lwv8C2ioV7LV2XfGoqJlHGA8LSNC26eHn95HkuYZyNjIUNavll2u2JdYTX3FxRkSb3y0eCXKe3Mf5VmP6r9JianL+4eiJI/EDv5IrMlnDYlLq9UkqI0S73TieSfRov0PtZa7AzxM5QcLZk36gs4alulArL8M2NSsHP6uUt4slp3Mb4tRMDfNSUoDczcRIRO7VahvIUMGunObLwIc=", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDGaQSACO6m7SJdy9C94gq7FvYNVSQwR/dWkEK/6tKMgyUhCofUsNxnlkUbdqRj88jr16JAhx4VtGK6ZlUmJlys=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIOcxTNb++LMEkJqYpZyOa7+d2bME1Dg/aR1q2sNn32cr", "ansible_lsb": {}, "ansible_distribution": "RedHat", "ansible_distribution_release": "Ootpa", "ansible_distribution_version": "8.2", "ansible_distribution_major_version": "8", "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_file_parsed": true, "ansible_distribution_file_search_string": "Red Hat", "ansible_os_family": "RedHat", "ansible_fips": false, "ansible_virtualization_type": "xen", "ansible_virtualization_role": "guest", "ansible_interfaces": ["eth0", "lo"], "ansible_lo": {"device": "lo", "mtu": 65536, "active": true, "type": "loopback", "promisc": false, "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "features": {"rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "on [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "on [fixed]", "tx_lockless": "on [fixed]", "netns_local": "on [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_sctp_segmentation": "on", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off [fixed]", "loopback": "on [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]"}, "timestamping": ["tx_software", "rx_software", "software"], "hw_timestamp_filters": []}, "ansible_eth0": {"device": "eth0", "macaddress": "02:9d:f0:e8:bc:77", "mtu": 9001, "active": true, "module": "xen_netfront", "type": "ether", "pciid": "vif-0", "promisc": false, "ipv4": {"address": "172.31.23.42", "broadcast": "172.31.31.255", "netmask": "255.255.240.0", "network": "172.31.16.0"}, "ipv6": [{"address": "fe80::9d:f0ff:fee8:bc77", "prefix": "64", "scope": "link"}], "features": {"rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "on [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_checksum_ipv6": "on", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "off [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "off [fixed]", "tx_lockless": "off [fixed]", "netns_local": "off [fixed]", "tx_gso_robust": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off", "loopback": "off [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]"}, "timestamping": ["rx_software", "software"], "hw_timestamp_filters": []}, "ansible_default_ipv4": {"gateway": "172.31.16.1", "interface": "eth0", "address": "172.31.23.42", "broadcast": "172.31.31.255", "netmask": "255.255.240.0", "network": "172.31.16.0", "macaddress": "02:9d:f0:e8:bc:77", "mtu": 9001, "type": "ether", "alias": "eth0"}, "ansible_default_ipv6": {}, "ansible_all_ipv4_addresses": ["172.31.23.42"], "ansible_all_ipv6_addresses": ["fe80::9d:f0ff:fee8:bc77"], "ansible_iscsi_iqn": "", "ansible_processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz"], "ansible_processor_count": 1, "ansible_processor_cores": 1, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 1, "ansible_memtotal_mb": 815, "ansible_memfree_mb": 280, "ansible_swaptotal_mb": 0, "ansible_swapfree_mb": 0, "ansible_memory_mb": {"real": {"total": 815, "used": 535, "free": 280}, "nocache": {"free": 613, "used": 202}, "swap": {"total": 0, "free": 0, "used": 0, "cached": 0}}, "ansible_bios_date": "08/24/2006", "ansible_bios_version": "4.2.amazon", "ansible_form_factor": "Other", "ansible_product_name": "HVM domU", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "4.2.amazon", "ansible_system_vendor": "Xen", "ansible_devices": {"xvda": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {"xvda2": {"links": {"ids": [], "uuids": ["3510a17e-27dc-4ae2-9243-d600c16f4106"], "labels": [], "masters": []}, "start": "4096", "sectors": "20967391", "sectorsize": 512, "size": "10.00 GB", "uuid": "3510a17e-27dc-4ae2-9243-d600c16f4106", "holders": []}, "xvda1": {"links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "start": "2048", "sectors": "2048", "sectorsize": 512, "size": "1.00 MB", "uuid": null, "holders": []}}, "rotational": "0", "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "host": "", "holders": []}}, "ansible_device_links": {"ids": {}, "uuids": {"xvda2": ["3510a17e-27dc-4ae2-9243-d600c16f4106"]}, "labels": {}, "masters": {}}, "ansible_uptime_seconds": 4422, "ansible_mounts": [{"mount": "/", "device": "/dev/xvda2", "fstype": "xfs", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_total": 10724814848, "size_available": 9497722880, "block_size": 4096, "block_total": 2618363, "block_available": 2318780, "block_used": 299583, "inode_total": 5241840, "inode_available": 5208528, "inode_used": 33312, "uuid": "3510a17e-27dc-4ae2-9243-d600c16f4106"}], "ansible_local": {}, "ansible_fibre_channel_wwn": [], "ansible_system_capabilities_enforced": "True", "ansible_system_capabilities": [""], "ansible_python": {"version": {"major": 3, "minor": 6, "micro": 8, "releaselevel": "final", "serial": 0}, "version_info": [3, 6, 8, "final", 0], "executable": "/usr/libexec/platform-python", "has_sslcontext": true, "type": "cpython"}, "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos2)/boot/vmlinuz-4.18.0-193.el8.x86_64", "root": "UUID=3510a17e-27dc-4ae2-9243-d600c16f4106", "ro": true, "console": "tty0", "net.ifnames": "0", "rd.blacklist": "nouveau", "nvme_core.io_timeout": "4294967295", "crashkernel": "auto"}, "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos2)/boot/vmlinuz-4.18.0-193.el8.x86_64", "root": "UUID=3510a17e-27dc-4ae2-9243-d600c16f4106", "ro": true, "console": ["ttyS0,115200n8", "tty0"], "net.ifnames": "0", "rd.blacklist": "nouveau", "nvme_core.io_timeout": "4294967295", "crashkernel": "auto"}, "ansible_is_chroot": false, "ansible_date_time": {"year": "2020", "month": "08", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "34", "day": "25", "hour": "09", "minute": "12", "second": "46", "epoch": "1598346766", "date": "2020-08-25", "time": "09:12:46", "iso8601_micro": "2020-08-25T09:12:46.165799Z", "iso8601": "2020-08-25T09:12:46Z", "iso8601_basic": "20200825T091246165668", "iso8601_basic_short": "20200825T091246", "tz": "UTC", "tz_offset": "+0000"}, "ansible_selinux_python_present": true, "ansible_selinux": {"status": "enabled", "policyvers": 31, "config_mode": "enforcing", "mode": "enforcing", "type": "targeted"}, "ansible_apparmor": {"status": "disabled"}, "ansible_env": {"LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "SSH_CONNECTION": "172.31.18.236 33608 172.31.23.42 22", "_": "/usr/libexec/platform-python", "LANG": "en_US.UTF-8", "XDG_SESSION_ID": "39", "USER": "ansible", "SELINUX_ROLE_REQUESTED": "", "PWD": "/home/ansible", "HOME": "/home/ansible", "SSH_CLIENT": "172.31.18.236 33608 22", "SELINUX_LEVEL_REQUESTED": "", "SSH_TTY": "/dev/pts/1", "SHELL": "/bin/bash", "TERM": "xterm-256color", "SELINUX_USE_CURRENT_RANGE": "", "SHLVL": "2", "LOGNAME": "ansible", "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1001/bus", "XDG_RUNTIME_DIR": "/run/user/1001", "PATH": "/home/ansible/.local/bin:/home/ansible/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin", "LESSOPEN": "||/usr/bin/lesspipe.sh %s"}, "ansible_pkg_mgr": "dnf", "ansible_hostnqn": "", "ansible_service_mgr": "systemd", "gather_subset": ["all"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["all"], "gather_timeout": 10, "filter": "*", "fact_path": "/etc/ansible/facts.d"}}}\r\n', b'Shared connection to ec2-3-249-227-122.eu-west-1.compute.amazonaws.com closed.\r\n')
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ce7441570e ec2-3-249-227-122.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1598346765.0777154-5325-64035331839151/ > /dev/null 2>&1 && sleep 0'"'"''
<ec2-3-249-227-122.eu-west-1.compute.amazonaws.com> (0, b'', b'')
ok: [ec2-3-249-227-122.eu-west-1.compute.amazonaws.com]
META: ran handlers
TASK [Transfering from between servers using delegate] ***************************************************************************************************************************************************************************************
task path: /home/ansible/sync.yml:5
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/d302bd36fb ec2-3-249-85-67.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'echo ~ansible && sleep 0'"'"''
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> (0, b'/home/ansible\n', b'')
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/d302bd36fb ec2-3-249-85-67.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir /home/ansible/.ansible/tmp/ansible-tmp-1598346766.6341565-5347-13073173533087 && echo ansible-tmp-1598346766.6341565-5347-13073173533087="` echo /home/ansible/.ansible/tmp/ansible-tmp-1598346766.6341565-5347-13073173533087 `" ) && sleep 0'"'"''
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> (0, b'ansible-tmp-1598346766.6341565-5347-13073173533087=/home/ansible/.ansible/tmp/ansible-tmp-1598346766.6341565-5347-13073173533087\n', b'')
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> Attempting python interpreter discovery
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/d302bd36fb ec2-3-249-85-67.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> (0, b'PLATFORM\nLinux\nFOUND\n/usr/libexec/platform-python\nENDFOUND\n', b'')
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/d302bd36fb ec2-3-249-85-67.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'/usr/libexec/platform-python && sleep 0'"'"''
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> (0, b'{"platform_dist_result": ["redhat", "8.2", "Ootpa"], "osrelease_content": "NAME=\\"Red Hat Enterprise Linux\\"\\nVERSION=\\"8.2 (Ootpa)\\"\\nID=\\"rhel\\"\\nID_LIKE=\\"fedora\\"\\nVERSION_ID=\\"8.2\\"\\nPLATFORM_ID=\\"platform:el8\\"\\nPRETTY_NAME=\\"Red Hat Enterprise Linux 8.2 (Ootpa)\\"\\nANSI_COLOR=\\"0;31\\"\\nCPE_NAME=\\"cpe:/o:redhat:enterprise_linux:8.2:GA\\"\\nHOME_URL=\\"https://www.redhat.com/\\"\\nBUG_REPORT_URL=\\"https://bugzilla.redhat.com/\\"\\n\\nREDHAT_BUGZILLA_PRODUCT=\\"Red Hat Enterprise Linux 8\\"\\nREDHAT_BUGZILLA_PRODUCT_VERSION=8.2\\nREDHAT_SUPPORT_PRODUCT=\\"Red Hat Enterprise Linux\\"\\nREDHAT_SUPPORT_PRODUCT_VERSION=\\"8.2\\"\\n"}\n', b'')
Using module file /usr/lib/python3.6/site-packages/ansible/modules/files/synchronize.py
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> PUT /home/ansible/.ansible/tmp/ansible-local-5318rvb_n_o4/tmp2opbxma7 TO /home/ansible/.ansible/tmp/ansible-tmp-1598346766.6341565-5347-13073173533087/AnsiballZ_synchronize.py
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/d302bd36fb '[ec2-3-249-85-67.eu-west-1.compute.amazonaws.com]'
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-5318rvb_n_o4/tmp2opbxma7 /home/ansible/.ansible/tmp/ansible-tmp-1598346766.6341565-5347-13073173533087/AnsiballZ_synchronize.py\n', b'')
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/d302bd36fb ec2-3-249-85-67.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1598346766.6341565-5347-13073173533087/ /home/ansible/.ansible/tmp/ansible-tmp-1598346766.6341565-5347-13073173533087/AnsiballZ_synchronize.py && sleep 0'"'"''
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> (0, b'', b'')
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/d302bd36fb -tt ec2-3-249-85-67.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'/usr/libexec/platform-python /home/ansible/.ansible/tmp/ansible-tmp-1598346766.6341565-5347-13073173533087/AnsiballZ_synchronize.py && sleep 0'"'"''
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> (1, b'\r\n{"rc": 2, "msg": "[Errno 2] No such file or directory: b\'sshpass\': b\'sshpass\'", "cmd": "sshpass", "failed": true, "exception": " File \\"/tmp/ansible_synchronize_payload_zoiutoi7/ansible_synchronize_payload.zip/ansible/module_utils/basic.py\\", line 2588, in run_command\\n cmd = subprocess.Popen(args, **kwargs)\\n File \\"/usr/lib64/python3.6/subprocess.py\\", line 729, in __init__\\n restore_signals, start_new_session)\\n File \\"/usr/lib64/python3.6/subprocess.py\\", line 1364, in _execute_child\\n raise child_exception_type(errno_num, err_msg, err_filename)\\n", "invocation": {"module_args": {"src": "/tmp/testdir", "dest": "[email protected]:/tmp", "_local_rsync_path": "rsync", "_local_rsync_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "rsync_path": null, "delete": false, "_substitute_controller": false, "archive": true, "checksum": false, "compress": true, "existing_only": false, "dirs": false, "copy_links": false, "set_remote_user": true, "rsync_timeout": 0, "rsync_opts": [], "partial": false, "verify_host": false, "mode": "push", "dest_port": null, "private_key": null, "recursive": null, "links": null, "perms": null, "times": null, "owner": null, "group": null, "ssh_args": null, "link_dest": null}}}\r\n', b'Shared connection to ec2-3-249-85-67.eu-west-1.compute.amazonaws.com closed.\r\n')
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> Failed to connect to the host via ssh: Shared connection to ec2-3-249-85-67.eu-west-1.compute.amazonaws.com closed.
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ansible
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/d302bd36fb ec2-3-249-85-67.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1598346766.6341565-5347-13073173533087/ > /dev/null 2>&1 && sleep 0'"'"''
<ec2-3-249-85-67.eu-west-1.compute.amazonaws.com> (0, b'', b'')
The full traceback is:
File "/tmp/ansible_synchronize_payload_zoiutoi7/ansible_synchronize_payload.zip/ansible/module_utils/basic.py", line 2588, in run_command
cmd = subprocess.Popen(args, **kwargs)
File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
fatal: [ec2-3-249-227-122.eu-west-1.compute.amazonaws.com -> ec2-3-249-85-67.eu-west-1.compute.amazonaws.com]: FAILED! => {
"changed": false,
"cmd": "sshpass",
"invocation": {
"module_args": {
"_local_rsync_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"_local_rsync_path": "rsync",
"_substitute_controller": false,
"archive": true,
"checksum": false,
"compress": true,
"copy_links": false,
"delete": false,
"dest": "[email protected]:/tmp",
"dest_port": null,
"dirs": false,
"existing_only": false,
"group": null,
"link_dest": null,
"links": null,
"mode": "push",
"owner": null,
"partial": false,
"perms": null,
"private_key": null,
"recursive": null,
"rsync_opts": [],
"rsync_path": null,
"rsync_timeout": 0,
"set_remote_user": true,
"src": "/tmp/testdir",
"ssh_args": null,
"times": null,
"verify_host": false
}
},
"msg": "[Errno 2] No such file or directory: b'sshpass': b'sshpass'",
"rc": 2
}
PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
ec2-3-249-227-122.eu-west-1.compute.amazonaws.com : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
$
sysctl module tries sysctl -p
on macOS, which fails.
sysctl
ansible 2.10.0b1
config file = None
configured module search path = ['/Users/dale/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/dale/.vpy/system-ansible/lib/python3.7/site-packages/ansible
executable location = /Users/dale/.vpy/system-ansible/bin/ansible
python version = 3.7.3 (default, Apr 24 2020, 18:51:23) [Clang 11.0.3 (clang-1103.0.32.62)]
(the output of the command was empty)
At least macOS 10.13 and newer (I've just tested 10.13, 10.14, 10.15).
Make sure /etc/sysctl.conf
doesn't contain a setting for kern.sysv.shmmin
, then run:
ansible -m sysctl -a 'state=present name=kern.sysv.shmmin value=1' localhost --become -K
sysctl will set my settings in /etc/sysctl.conf
without error.
I don't know of any replacement for sysctl -p
on macOS, so I think it's on me, the user, to figure out how to apply the settings. If someone else can find a way to accomplish this, I'm all for it.
$ ansible -m sysctl -a 'state=present name=kern.sysv.shmmin value=1' localhost --become -K
BECOME password:
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | FAILED! => {
"changed": false,
"msg": "Failed to reload sysctl: /usr/sbin/sysctl: illegal option -- p\nusage: sysctl [-bdehiNnoqx] name[=value] ...\n sysctl [-bdehNnoqx] -a\n"
}
Note that /etc/sysctl.conf
has been updated successfully, but the module then errors out with the above.
ansible.posix.mount module doesn't work
mount
[root@storageqe-62 ~]# ansible --version
[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code
and can become unstable at any point.
ansible 2.10.0.dev0
config file = /root/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible_base-2.10.0.dev0-py3.6.egg/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.8 (default, Dec 5 2019, 15:45:45) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
RHEL8.2
[root@storageqe-62 ~]# ansible-galaxy collection install ansible.posix
[root@storageqe-62 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 279.4G 0 disk
├─sda1 8:1 0 600M 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 277.8G 0 part
├─rhel_storageqe--62-root 253:0 0 50G 0 lvm /
├─rhel_storageqe--62-swap 253:1 0 7.9G 0 lvm [SWAP]
└─rhel_storageqe--62-home 253:2 0 220G 0 lvm /home
sdb 8:16 0 279.4G 0 disk
sdc 8:32 0 186.3G 0 disk
sdd 8:48 0 111.8G 0 disk
sde 8:64 0 111.8G 0 disk
sdf 8:80 0 931.5G 0 disk
sdg 8:96 0 931.5G 0 disk
sdh 8:112 0 931.5G 0 disk
sdi 8:128 0 931.5G 0 disk
sdj 8:144 0 931.5G 0 disk
sdk 8:160 0 279.4G 0 disk
sdl 8:176 0 279.4G 0 disk
└─sdl1 8:177 0 279.4G 0 part /root/test
nvme0n1 259:0 0 745.2G 0 disk
[root@storageqe-62 ~]# cat mount1.yml
---
- hosts: localhost
collections:
- ansible.posix
tasks:
- name: test mount
mount:
src: /dev/nvme0n1
path: /mnt
fstype: ext4
state: mounted
[root@storageqe-62 ~]# ansible-playbook mount1.yml
[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can become unstable at any point.
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] *****************************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [test mount] ****************************************************************************************************************************************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: 'module' object is not callable
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1588344023.191913-7960-159675219017070/AnsiballZ_mount.py\", line 102, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1588344023.191913-7960-159675219017070/AnsiballZ_mount.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1588344023.191913-7960-159675219017070/AnsiballZ_mount.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.ansible.posix.plugins.modules.mount', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_mount_payload_k_zs2wmx/ansible_mount_payload.zip/ansible_collections/ansible/posix/plugins/modules/mount.py\", line 764, in <module>\n File \"/tmp/ansible_mount_payload_k_zs2wmx/ansible_mount_payload.zip/ansible_collections/ansible/posix/plugins/modules/mount.py\", line 733, in main\nTypeError: 'module' object is not callable\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
PLAY RECAP ***********************************************************************************************************************************************************************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
mount module works well
mount module doesn't work
Add the community-supported 'json_query' plugin to Red Hat Automation Hub.
On behalf of one of our customers, can we please look into adding the json_query plugin to Automation Hub:
https://galaxy.ansible.com/community/general
plugin: json_query
collection: Community General (Galaxy)
We've discussed the topic briefly with Richard (Henshall) and he wanted to have an RFE for it.
Apologies in advance if this is the wrong place for this RFE (it was our best guest with the RH ansible support team).
Defining a new firewall zone and subsequenially defining the services for this zone results in failure for the definition of the service.
firewalld
ansible 2.9.13
config file = /srv/ansible/ansible.cfg
configured module search path = ['/home/pimaarts/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
[defaults]
collections_paths = ./collections
roles_path = ./roles
inventory = ./inventory/hosts.ini
log_path=./logs/logfile
Control host CentOS 8.2 / target CentOS 8.2
The firewall zone used 'newzone' does not exist!
collections:
- ansible.posix
tasks:
- name: Firewall - define the zone
ansible.posix.firewalld:
zone: newzone
state: present
permanent: yes
- name: Firewall - set the service for the zone
ansible.posix.firewalld:
zone: newzone
service: ssh
state: enabled
permanent: yes
To be able to define a firewall zone and the specifics of the firewall zone in the same playbook.
When a firewall reload is performed explicitly after the creation of the zone, no failure occurs.
collections:
- ansible.posix
tasks:
- name: Firewall - define the zone
ansible.posix.firewalld:
zone: newzone
state: present
permanent: yes
- name: Firewall - reload
command: firewall-cmd --reload
- name: Firewall - set the service for the zone
ansible.posix.firewalld:
zone: newzone
service: ssh
state: enabled
permanent: yes
TASK [Firewall - define the zone (CentOS)] ******************************************************************************************************************************************
changed: [bookstack..studiumnovum.nl]
TASK [Firewall - set the zone (CentOS)] *********************************************************************************************************************************************
fatal: [bookstack.studiumnovum.nl]: FAILED! => {"changed": false, "msg": "ERROR: Exception caught: org.fedoraproject.FirewallD1.Exception: INVALID_ZONE: newzone"}
Firewalld, the RedHat family default firewall, is in this collection, but other firewalls, more specifically iptables and ufw are in other collections. I think all Linux firewall modules should belong to just one collection.
firewalld
ansible 2.10.0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/mhalano/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.8.2 (default, Jul 16 2020, 14:00:26) [GCC 9.3.0]
No changes
Ubuntu 20.04 LTS
You can find firewalld module at this collection, ufw at community.general and iptables at standard modules.
All Linux firewall modules should belong to the same collection
Each one of the three main firewalls are in a different collection.
Defining the end-state of the firewall settings independently of the begin-state of the firewall, so replacing the existing state with the desired end-state (if changed).
Currently with the firewalld module, the changes are made incrementally on the existing state.
firewalld
First I have to tell that I am quite new to Ansible. My understanding of Ansible is that is a configuration management system to be used to manage servers from a central point. In my opinion this means that I can define and set the end-state, independently from the starting state.
For firewalld this does not work.
When the starting state is (in the example I focus only on the services, but the story holds true for all zone parameters):
$ sudo firewall-cmd --list-services
https
Executing the task:
- firewalld:
zone: somezone
service: ssh
permanent: yes
state: enabled
will result in:
$ sudo firewall-cmd --list-services
https ssh
I know I can remove a service with a task:
- firewalld:
zone: somezone
service: http
permanent: yes
state: disabled
However to be able to do this, I first need to determine by logging into the server which services are enabled and then add for all not required services a task. I my opinion, this is not how it should work.
A firewall is key in the security of a server. So, in my opinion, it is necessary to be able to define the end-state of a firewall independently of the start-start.
The following tests have been disabled on all operating systems:
package
needs ansible/ansible#67684package
needs ansible/ansible#67684package
needs ansible/ansible#67684Rever #5
patch
mount
2.10
Currently profile_task display execution time of every task and whole playbook execution time. But we require time in millisec in log file for logsniffing tools. i made a plugin kindly review it as i am facing conflict with ur plugin.
ansible-collections/community.general#356
plugins/callback/profile_tasks.py
From @djgraff209 on Jun 23, 2020 22:12
The Ansible 'synchronize' refers to the deprecated 'ansible_ssh_user' variable exclusively without taking into account the 'ansible_user' (2.9+) variable.
synchronize
2.9.10
Controller: MacOS Catalina 10.15.5 / Python3 3.8.2
Target Node Set:
8 nodes running Redhat 7.7
1 node running CentOS 7.7
Assume following:
Provide a playbook to synchronize between a RedHat and CentOS
---
# Inventory File
all:
hosts:
host1:
ansible_host: host1.company.com
ansible_user: redhat
host2:
ansible_host: host2.company.com
ansible_user: centos
---
# mysync-playbook.yaml
- hosts: host2
tasks:
- name: Synchronize to host2
synchronize:
src: /some/directory/somefile.tar.gz
dest: /tmp/somefile.tar.gz
use_ssh_args: True # This is to ensure that Ansible Config ssh_connection with ForwardAgent=yes is respected
delegate_to: host1
Expect that synchronize plugin will copy redhat@host1:/some/directory/somefile.tar.gz to centos@host2:/tmp/somefile.tar.gz using rsync command delegated to host1.
Task fails to copy indicating too many authentication attempts.
TASK [Synchronize to Controller] *********************************************************************************************************************************************************************
<host1.company.com> ESTABLISH SSH CONNECTION FOR USER: redhat
<host1.company.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="redhat"' -o ConnectTimeout=10 host1.company.com '/bin/sh -c '"'"'echo ~redhat && sleep 0'"'"''
<host1.company.com> (0, b'/home/redhat\n', b'OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/ansibleuser/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug2: resolving "host1.company.com" port 22\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to host1.company.com [34.220.1.72] port 22.\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: fd 5 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9831 ms remain after connect\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa type 0\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519 type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4\r\ndebug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: Authenticating to host1.company.com:22 as \'redhat\'\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected],zlib\r\ndebug2: compression stoc: none,[email protected],zlib\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected]\r\ndebug2: compression stoc: none,[email protected]\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:AAdSciJWX3ObYybJDi5x4dqMbFLhZPxOx+JF6qyBe+4\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:307\r\ndebug3: load_hostkeys: loaded 1 keys from 34.220.1.72\r\ndebug1: Host \'host1.company.com\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ_Pem_SE.pem RSA SHA256:gT+8jyC5fZUlDsFRnOOzx5wihXD8VFBofyYeWLxcvOg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/Java_Lab.pem RSA SHA256:0bivZabBfiN/2f2BqfiZfCu9DOL8YKyy//IJ+hs/nls agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/devops_level1_lab.pem RSA SHA256:taeGJ4amTq1T9hSq2/CNvvMl7/gqV2AoNaSZI79zohg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_dsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ed25519 \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_xmss \r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-with-mic\r\ndebug3: remaining preferred: gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-keyex\r\ndebug3: remaining preferred: hostbased,publickey\r\ndebug2: Unrecognized authentication method name: gssapi-keyex\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: sign_and_send_pubkey: RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg\r\ndebug3: sign_and_send_pubkey: signing using rsa-sha2-512\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to host1.company.com ([34.220.1.72]:22).\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 0: new [client-session]\r\ndebug3: ssh_session2_open: channel_new: 0\r\ndebug2: channel 0: send open\r\ndebug3: send packet: type 90\r\ndebug1: Requesting [email protected]\r\ndebug3: send packet: type 80\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: network\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype [email protected] want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 0: callback start\r\ndebug1: Requesting authentication agent forwarding.\r\ndebug2: channel 0: request [email protected] confirm 0\r\ndebug3: send packet: type 98\r\ndebug2: fd 5 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x20\r\ndebug2: client_session2_setup: id 0\r\ndebug1: Sending environment.\r\ndebug3: Ignored env SHELL\r\ndebug3: Ignored env COLORTERM\r\ndebug3: Ignored env XPC_FLAGS\r\ndebug3: Ignored env TERM_PROGRAM_VERSION\r\ndebug3: Ignored env SSH_AUTH_SOCK\r\ndebug3: Ignored env GRADLE_HOME\r\ndebug3: Ignored env SPRINGBOOT_HOME\r\ndebug3: Ignored env SDKMAN_CANDIDATES_DIR\r\ndebug3: Ignored env PWD\r\ndebug3: Ignored env LOGNAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_NODE\r\ndebug3: Ignored env ANSIBLE_VAULT_PASSWORD_FILE\r\ndebug3: Ignored env HOME\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug2: channel 0: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug3: Ignored env SDKMAN_VERSION\r\ndebug3: Ignored env TMPDIR\r\ndebug3: Ignored env GIT_ASKPASS\r\ndebug3: Ignored env GROOVY_HOME\r\ndebug3: Ignored env TERM\r\ndebug3: Ignored env USER\r\ndebug3: Ignored env VSCODE_GIT_IPC_HANDLE\r\ndebug3: Ignored env MAVEN_HOME\r\ndebug3: Ignored env SDKMAN_DIR\r\ndebug3: Ignored env DISPLAY\r\ndebug3: Ignored env SHLVL\r\ndebug3: Ignored env SDKMAN_CANDIDATES_API\r\ndebug3: Ignored env XPC_SERVICE_NAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_MAIN\r\ndebug3: Ignored env PATH\r\ndebug3: Ignored env ORIGINAL_XDG_CURRENT_DESKTOP\r\ndebug3: Ignored env SDKMAN_PLATFORM\r\ndebug3: Ignored env VSCODEEXT_USER_AGENT\r\ndebug3: Ignored env __CF_USER_TEXT_ENCODING\r\ndebug3: Ignored env TERM_PROGRAM\r\ndebug3: Ignored env _\r\ndebug3: Ignored env __PYVENV_LAUNCHER__\r\ndebug1: Sending command: /bin/sh -c \'echo ~redhat && sleep 0\'\r\ndebug2: channel 0: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug2: channel_input_open_confirmation: channel 0: callback done\r\ndebug2: channel 0: open confirm rwindow 0 rmax 32768\r\ndebug2: channel 0: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 0\r\ndebug2: exec request accepted on channel 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype exit-status reply 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype [email protected] reply 0\r\ndebug2: channel 0: rcvd eow\r\ndebug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 0: input open -> closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 0: rcvd eof\r\ndebug2: channel 0: output open -> drain\r\ndebug2: channel 0: obuf empty\r\ndebug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 0: output drain -> closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 0: rcvd close\r\ndebug3: channel 0: will not send data after close\r\ndebug2: channel 0: almost dead\r\ndebug2: channel 0: gc: notify user\r\ndebug2: channel 0: gc: user detached\r\ndebug2: channel 0: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 0: is dead\r\ndebug2: channel 0: garbage collecting\r\ndebug1: channel 0: free: client-session, nchannels 1\r\ndebug3: channel 0: status: The following connections are open:\r\n #0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n\r\ndebug3: send packet: type 1\r\ndebug3: fd 1 is not O_NONBLOCK\r\ndebug1: fd 2 clearing O_NONBLOCK\r\nTransferred: sent 3912, received 2924 bytes, in 0.4 seconds\r\nBytes per second: sent 10850.2, received 8109.9\r\ndebug1: Exit status 0\r\n')
<host1.company.com> ESTABLISH SSH CONNECTION FOR USER: redhat
<host1.company.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="redhat"' -o ConnectTimeout=10 host1.company.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/redhat/.ansible/tmp `"&& mkdir /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301 && echo ansible-tmp-1592949683.653033-56163-168684408179301="` echo /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301 `" ) && sleep 0'"'"''
<host1.company.com> (0, b'ansible-tmp-1592949683.653033-56163-168684408179301=/home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301\n', b'OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/ansibleuser/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug2: resolving "host1.company.com" port 22\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to host1.company.com [34.220.1.72] port 22.\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: fd 5 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9827 ms remain after connect\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa type 0\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519 type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4\r\ndebug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: Authenticating to host1.company.com:22 as \'redhat\'\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected],zlib\r\ndebug2: compression stoc: none,[email protected],zlib\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected]\r\ndebug2: compression stoc: none,[email protected]\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:AAdSciJWX3ObYybJDi5x4dqMbFLhZPxOx+JF6qyBe+4\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:307\r\ndebug3: load_hostkeys: loaded 1 keys from 34.220.1.72\r\ndebug1: Host \'host1.company.com\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ_Pem_SE.pem RSA SHA256:gT+8jyC5fZUlDsFRnOOzx5wihXD8VFBofyYeWLxcvOg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/Java_Lab.pem RSA SHA256:0bivZabBfiN/2f2BqfiZfCu9DOL8YKyy//IJ+hs/nls agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/devops_level1_lab.pem RSA SHA256:taeGJ4amTq1T9hSq2/CNvvMl7/gqV2AoNaSZI79zohg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_dsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ed25519 \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_xmss \r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-with-mic\r\ndebug3: remaining preferred: gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-keyex\r\ndebug3: remaining preferred: hostbased,publickey\r\ndebug2: Unrecognized authentication method name: gssapi-keyex\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: sign_and_send_pubkey: RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg\r\ndebug3: sign_and_send_pubkey: signing using rsa-sha2-512\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to host1.company.com ([34.220.1.72]:22).\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 0: new [client-session]\r\ndebug3: ssh_session2_open: channel_new: 0\r\ndebug2: channel 0: send open\r\ndebug3: send packet: type 90\r\ndebug1: Requesting [email protected]\r\ndebug3: send packet: type 80\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: network\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype [email protected] want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 0: callback start\r\ndebug1: Requesting authentication agent forwarding.\r\ndebug2: channel 0: request [email protected] confirm 0\r\ndebug3: send packet: type 98\r\ndebug2: fd 5 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x20\r\ndebug2: client_session2_setup: id 0\r\ndebug1: Sending environment.\r\ndebug3: Ignored env SHELL\r\ndebug3: Ignored env COLORTERM\r\ndebug3: Ignored env XPC_FLAGS\r\ndebug3: Ignored env TERM_PROGRAM_VERSION\r\ndebug3: Ignored env SSH_AUTH_SOCK\r\ndebug3: Ignored env GRADLE_HOME\r\ndebug3: Ignored env SPRINGBOOT_HOME\r\ndebug3: Ignored env SDKMAN_CANDIDATES_DIR\r\ndebug3: Ignored env PWD\r\ndebug3: Ignored env LOGNAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_NODE\r\ndebug3: Ignored env ANSIBLE_VAULT_PASSWORD_FILE\r\ndebug3: Ignored env HOME\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug2: channel 0: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug3: Ignored env SDKMAN_VERSION\r\ndebug3: Ignored env TMPDIR\r\ndebug3: Ignored env GIT_ASKPASS\r\ndebug3: Ignored env GROOVY_HOME\r\ndebug3: Ignored env TERM\r\ndebug3: Ignored env USER\r\ndebug3: Ignored env VSCODE_GIT_IPC_HANDLE\r\ndebug3: Ignored env MAVEN_HOME\r\ndebug3: Ignored env SDKMAN_DIR\r\ndebug3: Ignored env DISPLAY\r\ndebug3: Ignored env SHLVL\r\ndebug3: Ignored env SDKMAN_CANDIDATES_API\r\ndebug3: Ignored env XPC_SERVICE_NAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_MAIN\r\ndebug3: Ignored env PATH\r\ndebug3: Ignored env ORIGINAL_XDG_CURRENT_DESKTOP\r\ndebug3: Ignored env SDKMAN_PLATFORM\r\ndebug3: Ignored env VSCODEEXT_USER_AGENT\r\ndebug3: Ignored env __CF_USER_TEXT_ENCODING\r\ndebug3: Ignored env TERM_PROGRAM\r\ndebug3: Ignored env _\r\ndebug3: Ignored env __PYVENV_LAUNCHER__\r\ndebug1: Sending command: /bin/sh -c \'( umask 77 && mkdir -p "` echo /home/redhat/.ansible/tmp `"&& mkdir /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301 && echo ansible-tmp-1592949683.653033-56163-168684408179301="` echo /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301 `" ) && sleep 0\'\r\ndebug2: channel 0: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug2: channel_input_open_confirmation: channel 0: callback done\r\ndebug2: channel 0: open confirm rwindow 0 rmax 32768\r\ndebug2: channel 0: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 0\r\ndebug2: exec request accepted on channel 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype exit-status reply 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype [email protected] reply 0\r\ndebug2: channel 0: rcvd eow\r\ndebug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 0: input open -> closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 0: rcvd eof\r\ndebug2: channel 0: output open -> drain\r\ndebug3: receive packet: type 97\r\ndebug2: channel 0: rcvd close\r\ndebug3: channel 0: will not send data after close\r\ndebug3: channel 0: will not send data after close\r\ndebug2: channel 0: obuf empty\r\ndebug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 0: output drain -> closed\r\ndebug2: channel 0: almost dead\r\ndebug2: channel 0: gc: notify user\r\ndebug2: channel 0: gc: user detached\r\ndebug2: channel 0: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 0: is dead\r\ndebug2: channel 0: garbage collecting\r\ndebug1: channel 0: free: client-session, nchannels 1\r\ndebug3: channel 0: status: The following connections are open:\r\n #0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n\r\ndebug3: send packet: type 1\r\ndebug3: fd 1 is not O_NONBLOCK\r\ndebug1: fd 2 clearing O_NONBLOCK\r\nTransferred: sent 4200, received 3044 bytes, in 0.4 seconds\r\nBytes per second: sent 11112.6, received 8054.0\r\ndebug1: Exit status 0\r\n')
Using module file /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/ansible/modules/files/synchronize.py
<host1.company.com> PUT /Users/ansibleuser/.ansible/tmp/ansible-local-55856x5ogvuhc/tmp0dhwn333 TO /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/AnsiballZ_synchronize.py
<host1.company.com> SSH: EXEC sftp -b - -vvv -o ForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="redhat"' -o ConnectTimeout=10 '[host1.company.com]'
<host1.company.com> (0, b'sftp> put /Users/ansibleuser/.ansible/tmp/ansible-local-55856x5ogvuhc/tmp0dhwn333 /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/AnsiballZ_synchronize.py\n', b'OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/ansibleuser/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug2: resolving "host1.company.com" port 22\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to host1.company.com [34.220.1.72] port 22.\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: fd 5 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9833 ms remain after connect\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa type 0\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519 type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4\r\ndebug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: Authenticating to host1.company.com:22 as \'redhat\'\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected],zlib\r\ndebug2: compression stoc: none,[email protected],zlib\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected]\r\ndebug2: compression stoc: none,[email protected]\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:AAdSciJWX3ObYybJDi5x4dqMbFLhZPxOx+JF6qyBe+4\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:307\r\ndebug3: load_hostkeys: loaded 1 keys from 34.220.1.72\r\ndebug1: Host \'host1.company.com\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ_Pem_SE.pem RSA SHA256:gT+8jyC5fZUlDsFRnOOzx5wihXD8VFBofyYeWLxcvOg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/Java_Lab.pem RSA SHA256:0bivZabBfiN/2f2BqfiZfCu9DOL8YKyy//IJ+hs/nls agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/devops_level1_lab.pem RSA SHA256:taeGJ4amTq1T9hSq2/CNvvMl7/gqV2AoNaSZI79zohg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_dsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ed25519 \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_xmss \r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-with-mic\r\ndebug3: remaining preferred: gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-keyex\r\ndebug3: remaining preferred: hostbased,publickey\r\ndebug2: Unrecognized authentication method name: gssapi-keyex\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: sign_and_send_pubkey: RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg\r\ndebug3: sign_and_send_pubkey: signing using rsa-sha2-512\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to host1.company.com ([34.220.1.72]:22).\r\ndebug2: fd 6 setting O_NONBLOCK\r\ndebug3: fd 7 is O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 0: new [client-session]\r\ndebug3: ssh_session2_open: channel_new: 0\r\ndebug2: channel 0: send open\r\ndebug3: send packet: type 90\r\ndebug1: Requesting [email protected]\r\ndebug3: send packet: type 80\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: network\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype [email protected] want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 0: callback start\r\ndebug2: fd 5 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x20\r\ndebug2: client_session2_setup: id 0\r\ndebug1: Sending environment.\r\ndebug3: Ignored env SHELL\r\ndebug3: Ignored env COLORTERM\r\ndebug3: Ignored env XPC_FLAGS\r\ndebug3: Ignored env TERM_PROGRAM_VERSION\r\ndebug3: Ignored env SSH_AUTH_SOCK\r\ndebug3: Ignored env GRADLE_HOME\r\ndebug3: Ignored env SPRINGBOOT_HOME\r\ndebug3: Ignored env SDKMAN_CANDIDATES_DIR\r\ndebug3: Ignored env PWD\r\ndebug3: Ignored env LOGNAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_NODE\r\ndebug3: Ignored env ANSIBLE_VAULT_PASSWORD_FILE\r\ndebug3: Ignored env HOME\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug2: channel 0: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug3: Ignored env SDKMAN_VERSION\r\ndebug3: Ignored env TMPDIR\r\ndebug3: Ignored env GIT_ASKPASS\r\ndebug3: Ignored env GROOVY_HOME\r\ndebug3: Ignored env TERM\r\ndebug3: Ignored env USER\r\ndebug3: Ignored env VSCODE_GIT_IPC_HANDLE\r\ndebug3: Ignored env MAVEN_HOME\r\ndebug3: Ignored env SDKMAN_DIR\r\ndebug3: Ignored env DISPLAY\r\ndebug3: Ignored env SHLVL\r\ndebug3: Ignored env SDKMAN_CANDIDATES_API\r\ndebug3: Ignored env XPC_SERVICE_NAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_MAIN\r\ndebug3: Ignored env PATH\r\ndebug3: Ignored env ORIGINAL_XDG_CURRENT_DESKTOP\r\ndebug3: Ignored env SDKMAN_PLATFORM\r\ndebug3: Ignored env VSCODEEXT_USER_AGENT\r\ndebug3: Ignored env __CF_USER_TEXT_ENCODING\r\ndebug3: Ignored env TERM_PROGRAM\r\ndebug3: Ignored env _\r\ndebug3: Ignored env __PYVENV_LAUNCHER__\r\ndebug1: Sending subsystem: sftp\r\ndebug2: channel 0: request subsystem confirm 1\r\ndebug3: send packet: type 98\r\ndebug2: channel_input_open_confirmation: channel 0: callback done\r\ndebug2: channel 0: open confirm rwindow 0 rmax 32768\r\ndebug2: channel 0: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 0\r\ndebug2: subsystem request accepted on channel 0\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 3 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/redhat size 0\r\ndebug3: Looking up /Users/ansibleuser/.ansible/tmp/ansible-local-55856x5ogvuhc/tmp0dhwn333\r\ndebug3: Sent message fd 3 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/AnsiballZ_synchronize.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:22456\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug2: channel 0: rcvd adjust 98660\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 22456 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug2: channel 0: read<=0 rfd 6 len 0\r\ndebug2: channel 0: read failed\r\ndebug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 0: input open -> drain\r\ndebug2: channel 0: ibuf empty\r\ndebug2: channel 0: send eof\r\ndebug3: send packet: type 96\r\ndebug2: channel 0: input drain -> closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 0: rcvd eof\r\ndebug2: channel 0: output open -> drain\r\ndebug2: channel 0: obuf empty\r\ndebug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 0: output drain -> closed\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype exit-status reply 0\r\ndebug3: receive packet: type 97\r\ndebug2: channel 0: rcvd close\r\ndebug3: channel 0: will not send data after close\r\ndebug2: channel 0: almost dead\r\ndebug2: channel 0: gc: notify user\r\ndebug2: channel 0: gc: user detached\r\ndebug2: channel 0: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 0: is dead\r\ndebug2: channel 0: garbage collecting\r\ndebug1: channel 0: free: client-session, nchannels 1\r\ndebug3: channel 0: status: The following connections are open:\r\n #0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n\r\ndebug3: send packet: type 1\r\ndebug1: fd 0 clearing O_NONBLOCK\r\ndebug3: fd 1 is not O_NONBLOCK\r\ndebug1: fd 2 clearing O_NONBLOCK\r\nTransferred: sent 125484, received 3468 bytes, in 3.2 seconds\r\nBytes per second: sent 38659.4, received 1068.4\r\ndebug1: Exit status 0\r\n')
<host1.company.com> ESTABLISH SSH CONNECTION FOR USER: redhat
<host1.company.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="redhat"' -o ConnectTimeout=10 host1.company.com '/bin/sh -c '"'"'chmod u+x /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/ /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/AnsiballZ_synchronize.py && sleep 0'"'"''
<host1.company.com> (0, b'', b'OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/ansibleuser/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug2: resolving "host1.company.com" port 22\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to host1.company.com [34.220.1.72] port 22.\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: fd 5 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9234 ms remain after connect\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa type 0\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519 type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4\r\ndebug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: Authenticating to host1.company.com:22 as \'redhat\'\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected],zlib\r\ndebug2: compression stoc: none,[email protected],zlib\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected]\r\ndebug2: compression stoc: none,[email protected]\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:AAdSciJWX3ObYybJDi5x4dqMbFLhZPxOx+JF6qyBe+4\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:307\r\ndebug3: load_hostkeys: loaded 1 keys from 34.220.1.72\r\ndebug1: Host \'host1.company.com\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ_Pem_SE.pem RSA SHA256:gT+8jyC5fZUlDsFRnOOzx5wihXD8VFBofyYeWLxcvOg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/Java_Lab.pem RSA SHA256:0bivZabBfiN/2f2BqfiZfCu9DOL8YKyy//IJ+hs/nls agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/devops_level1_lab.pem RSA SHA256:taeGJ4amTq1T9hSq2/CNvvMl7/gqV2AoNaSZI79zohg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_dsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ed25519 \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_xmss \r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-with-mic\r\ndebug3: remaining preferred: gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-keyex\r\ndebug3: remaining preferred: hostbased,publickey\r\ndebug2: Unrecognized authentication method name: gssapi-keyex\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: sign_and_send_pubkey: RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg\r\ndebug3: sign_and_send_pubkey: signing using rsa-sha2-512\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to host1.company.com ([34.220.1.72]:22).\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 0: new [client-session]\r\ndebug3: ssh_session2_open: channel_new: 0\r\ndebug2: channel 0: send open\r\ndebug3: send packet: type 90\r\ndebug1: Requesting [email protected]\r\ndebug3: send packet: type 80\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: network\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype [email protected] want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 0: callback start\r\ndebug1: Requesting authentication agent forwarding.\r\ndebug2: channel 0: request [email protected] confirm 0\r\ndebug3: send packet: type 98\r\ndebug2: fd 5 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x20\r\ndebug2: client_session2_setup: id 0\r\ndebug1: Sending environment.\r\ndebug3: Ignored env SHELL\r\ndebug3: Ignored env COLORTERM\r\ndebug3: Ignored env XPC_FLAGS\r\ndebug3: Ignored env TERM_PROGRAM_VERSION\r\ndebug3: Ignored env SSH_AUTH_SOCK\r\ndebug3: Ignored env GRADLE_HOME\r\ndebug3: Ignored env SPRINGBOOT_HOME\r\ndebug3: Ignored env SDKMAN_CANDIDATES_DIR\r\ndebug3: Ignored env PWD\r\ndebug3: Ignored env LOGNAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_NODE\r\ndebug3: Ignored env ANSIBLE_VAULT_PASSWORD_FILE\r\ndebug3: Ignored env HOME\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug2: channel 0: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug3: Ignored env SDKMAN_VERSION\r\ndebug3: Ignored env TMPDIR\r\ndebug3: Ignored env GIT_ASKPASS\r\ndebug3: Ignored env GROOVY_HOME\r\ndebug3: Ignored env TERM\r\ndebug3: Ignored env USER\r\ndebug3: Ignored env VSCODE_GIT_IPC_HANDLE\r\ndebug3: Ignored env MAVEN_HOME\r\ndebug3: Ignored env SDKMAN_DIR\r\ndebug3: Ignored env DISPLAY\r\ndebug3: Ignored env SHLVL\r\ndebug3: Ignored env SDKMAN_CANDIDATES_API\r\ndebug3: Ignored env XPC_SERVICE_NAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_MAIN\r\ndebug3: Ignored env PATH\r\ndebug3: Ignored env ORIGINAL_XDG_CURRENT_DESKTOP\r\ndebug3: Ignored env SDKMAN_PLATFORM\r\ndebug3: Ignored env VSCODEEXT_USER_AGENT\r\ndebug3: Ignored env __CF_USER_TEXT_ENCODING\r\ndebug3: Ignored env TERM_PROGRAM\r\ndebug3: Ignored env _\r\ndebug3: Ignored env __PYVENV_LAUNCHER__\r\ndebug1: Sending command: /bin/sh -c \'chmod u+x /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/ /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/AnsiballZ_synchronize.py && sleep 0\'\r\ndebug2: channel 0: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug2: channel_input_open_confirmation: channel 0: callback done\r\ndebug2: channel 0: open confirm rwindow 0 rmax 32768\r\ndebug2: channel 0: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 0\r\ndebug2: exec request accepted on channel 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype exit-status reply 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype [email protected] reply 0\r\ndebug2: channel 0: rcvd eow\r\ndebug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 0: input open -> closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 0: rcvd eof\r\ndebug2: channel 0: output open -> drain\r\ndebug2: channel 0: obuf empty\r\ndebug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 0: output drain -> closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 0: rcvd close\r\ndebug3: channel 0: will not send data after close\r\ndebug2: channel 0: almost dead\r\ndebug2: channel 0: gc: notify user\r\ndebug2: channel 0: gc: user detached\r\ndebug2: channel 0: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 0: is dead\r\ndebug2: channel 0: garbage collecting\r\ndebug1: channel 0: free: client-session, nchannels 1\r\ndebug3: channel 0: status: The following connections are open:\r\n #0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n\r\ndebug3: send packet: type 1\r\ndebug3: fd 1 is not O_NONBLOCK\r\ndebug1: fd 2 clearing O_NONBLOCK\r\nTransferred: sent 4096, received 2888 bytes, in 0.3 seconds\r\nBytes per second: sent 12380.1, received 8729.0\r\ndebug1: Exit status 0\r\n')
<host1.company.com> ESTABLISH SSH CONNECTION FOR USER: redhat
<host1.company.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="redhat"' -o ConnectTimeout=10 -tt host1.company.com '/bin/sh -c '"'"'/usr/bin/python /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/AnsiballZ_synchronize.py && sleep 0'"'"''
<host1.company.com> (1, b'\r\n{"msg": "Warning: Permanently added \'host2.company.com,IP-REDACTED\' (ECDSA) to the list of known hosts.\\r\\nReceived disconnect from IP-REDACTED port 22:2: Too many authentication failures\\r\\nAuthentication failed.\\r\\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\\nrsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]\\n", "failed": true, "cmd": "/usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ForwardAgent=yes --out-format=<<CHANGED>>%i %n%L /opt/appdynamics/appd-cluster-connector-20200623220055.tgz [email protected]:/tmp/appd-cluster-connector.tgz", "rc": 255, "invocation": {"module_args": {"partial": false, "links": null, "copy_links": false, "perms": null, "link_dest": null, "owner": null, "_local_rsync_password": null, "archive": true, "dest_port": null, "_local_rsync_path": "rsync", "group": null, "recursive": null, "rsync_path": null, "_substitute_controller": false, "verify_host": false, "dirs": false, "private_key": null, "dest": "[email protected]:/tmp/appd-cluster-connector.tgz", "compress": true, "rsync_timeout": 0, "rsync_opts": [], "set_remote_user": true, "existing_only": false, "src": "/opt/appdynamics/appd-cluster-connector-20200623220055.tgz", "checksum": false, "times": null, "mode": "push", "ssh_args": "-o ForwardAgent=yes", "delete": false}}}\r\n', b'OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/ansibleuser/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug2: resolving "host1.company.com" port 22\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to host1.company.com [34.220.1.72] port 22.\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: fd 5 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9822 ms remain after connect\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa type 0\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519 type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4\r\ndebug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: Authenticating to host1.company.com:22 as \'redhat\'\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected],zlib\r\ndebug2: compression stoc: none,[email protected],zlib\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected]\r\ndebug2: compression stoc: none,[email protected]\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:AAdSciJWX3ObYybJDi5x4dqMbFLhZPxOx+JF6qyBe+4\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:307\r\ndebug3: load_hostkeys: loaded 1 keys from 34.220.1.72\r\ndebug1: Host \'host1.company.com\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ_Pem_SE.pem RSA SHA256:gT+8jyC5fZUlDsFRnOOzx5wihXD8VFBofyYeWLxcvOg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/Java_Lab.pem RSA SHA256:0bivZabBfiN/2f2BqfiZfCu9DOL8YKyy//IJ+hs/nls agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/devops_level1_lab.pem RSA SHA256:taeGJ4amTq1T9hSq2/CNvvMl7/gqV2AoNaSZI79zohg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_dsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ed25519 \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_xmss \r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-with-mic\r\ndebug3: remaining preferred: gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-keyex\r\ndebug3: remaining preferred: hostbased,publickey\r\ndebug2: Unrecognized authentication method name: gssapi-keyex\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: sign_and_send_pubkey: RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg\r\ndebug3: sign_and_send_pubkey: signing using rsa-sha2-512\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to host1.company.com ([34.220.1.72]:22).\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 0: new [client-session]\r\ndebug3: ssh_session2_open: channel_new: 0\r\ndebug2: channel 0: send open\r\ndebug3: send packet: type 90\r\ndebug1: Requesting [email protected]\r\ndebug3: send packet: type 80\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: network\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype [email protected] want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 0: callback start\r\ndebug1: Requesting authentication agent forwarding.\r\ndebug2: channel 0: request [email protected] confirm 0\r\ndebug3: send packet: type 98\r\ndebug2: fd 5 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x48\r\ndebug2: client_session2_setup: id 0\r\ndebug2: channel 0: request pty-req confirm 1\r\ndebug3: send packet: type 98\r\ndebug1: Sending environment.\r\ndebug3: Ignored env SHELL\r\ndebug3: Ignored env COLORTERM\r\ndebug3: Ignored env XPC_FLAGS\r\ndebug3: Ignored env TERM_PROGRAM_VERSION\r\ndebug3: Ignored env SSH_AUTH_SOCK\r\ndebug3: Ignored env GRADLE_HOME\r\ndebug3: Ignored env SPRINGBOOT_HOME\r\ndebug3: Ignored env SDKMAN_CANDIDATES_DIR\r\ndebug3: Ignored env PWD\r\ndebug3: Ignored env LOGNAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_NODE\r\ndebug3: Ignored env ANSIBLE_VAULT_PASSWORD_FILE\r\ndebug3: Ignored env HOME\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug2: channel 0: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug3: Ignored env SDKMAN_VERSION\r\ndebug3: Ignored env TMPDIR\r\ndebug3: Ignored env GIT_ASKPASS\r\ndebug3: Ignored env GROOVY_HOME\r\ndebug3: Ignored env TERM\r\ndebug3: Ignored env USER\r\ndebug3: Ignored env VSCODE_GIT_IPC_HANDLE\r\ndebug3: Ignored env MAVEN_HOME\r\ndebug3: Ignored env SDKMAN_DIR\r\ndebug3: Ignored env DISPLAY\r\ndebug3: Ignored env SHLVL\r\ndebug3: Ignored env SDKMAN_CANDIDATES_API\r\ndebug3: Ignored env XPC_SERVICE_NAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_MAIN\r\ndebug3: Ignored env PATH\r\ndebug3: Ignored env ORIGINAL_XDG_CURRENT_DESKTOP\r\ndebug3: Ignored env SDKMAN_PLATFORM\r\ndebug3: Ignored env VSCODEEXT_USER_AGENT\r\ndebug3: Ignored env __CF_USER_TEXT_ENCODING\r\ndebug3: Ignored env TERM_PROGRAM\r\ndebug3: Ignored env _\r\ndebug3: Ignored env __PYVENV_LAUNCHER__\r\ndebug1: Sending command: /bin/sh -c \'/usr/bin/python /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/AnsiballZ_synchronize.py && sleep 0\'\r\ndebug2: channel 0: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug2: channel_input_open_confirmation: channel 0: callback done\r\ndebug2: channel 0: open confirm rwindow 0 rmax 32768\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 0\r\ndebug2: PTY allocation request accepted on channel 0\r\ndebug2: channel 0: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 0\r\ndebug2: exec request accepted on channel 0\r\ndebug3: receive packet: type 90\r\ndebug1: client_input_channel_open: ctype [email protected] rchan 2 win 65536 max 16384\r\ndebug2: fd 9 setting O_NONBLOCK\r\ndebug3: fd 9 is O_NONBLOCK\r\ndebug1: channel 1: new [authentication agent connection]\r\ndebug1: confirm [email protected]\r\ndebug3: send packet: type 91\r\ndebug3: receive packet: type 96\r\ndebug2: channel 1: rcvd eof\r\ndebug2: channel 1: output open -> drain\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: chan_shutdown_write (i0 o1 sock 9 wfd 9 efd -1 [closed])\r\ndebug2: channel 1: output drain -> closed\r\ndebug1: channel 1: FORCE input drain\r\ndebug2: channel 1: ibuf empty\r\ndebug2: channel 1: send eof\r\ndebug3: send packet: type 96\r\ndebug2: channel 1: input drain -> closed\r\ndebug2: channel 1: send close\r\ndebug3: send packet: type 97\r\ndebug3: channel 1: will not send data after close\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype exit-status reply 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype [email protected] reply 0\r\ndebug2: channel 0: rcvd eow\r\ndebug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 0: input open -> closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 0: rcvd eof\r\ndebug2: channel 0: output open -> drain\r\ndebug3: receive packet: type 97\r\ndebug2: channel 0: rcvd close\r\ndebug3: channel 0: will not send data after close\r\ndebug3: channel 1: will not send data after close\r\ndebug3: channel 0: will not send data after close\r\ndebug3: channel 1: will not send data after close\r\ndebug2: channel 0: obuf empty\r\ndebug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 0: output drain -> closed\r\ndebug2: channel 0: almost dead\r\ndebug2: channel 0: gc: notify user\r\ndebug2: channel 0: gc: user detached\r\ndebug2: channel 0: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 0: is dead\r\ndebug2: channel 0: garbage collecting\r\ndebug1: channel 0: free: client-session, nchannels 2\r\ndebug3: channel 0: status: The following connections are open:\r\n #0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n #1 authentication agent connection (t4 r2 i3/0 o3/0 e[closed]/0 fd 9/9/-1 sock 9 cc -1)\r\n\r\ndebug3: channel 1: will not send data after close\r\ndebug3: receive packet: type 97\r\ndebug2: channel 1: rcvd close\r\ndebug3: channel 1: will not send data after close\r\ndebug2: channel 1: is dead\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: authentication agent connection, nchannels 1\r\ndebug3: channel 1: status: The following connections are open:\r\n #1 authentication agent connection (t4 r2 i3/0 o3/0 e[closed]/0 fd 9/9/-1 sock 9 cc -1)\r\n\r\ndebug3: send packet: type 1\r\ndebug3: fd 1 is not O_NONBLOCK\r\ndebug1: fd 2 clearing O_NONBLOCK\r\nConnection to host1.company.com closed.\r\nTransferred: sent 6684, received 4560 bytes, in 0.7 seconds\r\nBytes per second: sent 9066.5, received 6185.4\r\ndebug1: Exit status 1\r\n')
<host1.company.com> Failed to connect to the host via ssh: OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/ansibleuser/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug2: resolving "host1.company.com" port 22
debug2: ssh_connect_direct
debug1: Connecting to host1.company.com [34.220.1.72] port 22.
debug2: fd 5 setting O_NONBLOCK
debug1: fd 5 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 9822 ms remain after connect
debug1: identity file /Users/ansibleuser/.ssh/id_rsa type 0
debug1: identity file /Users/ansibleuser/.ssh/id_rsa-cert type -1
debug1: identity file /Users/ansibleuser/.ssh/id_dsa type -1
debug1: identity file /Users/ansibleuser/.ssh/id_dsa-cert type -1
debug1: identity file /Users/ansibleuser/.ssh/id_ecdsa type -1
debug1: identity file /Users/ansibleuser/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/ansibleuser/.ssh/id_ed25519 type -1
debug1: identity file /Users/ansibleuser/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/ansibleuser/.ssh/id_xmss type -1
debug1: identity file /Users/ansibleuser/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002
debug2: fd 5 setting O_NONBLOCK
debug1: Authenticating to host1.company.com:22 as 'redhat'
debug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227
debug3: load_hostkeys: loaded 1 keys from host1.company.com
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:AAdSciJWX3ObYybJDi5x4dqMbFLhZPxOx+JF6qyBe+4
debug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227
debug3: load_hostkeys: loaded 1 keys from host1.company.com
debug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:307
debug3: load_hostkeys: loaded 1 keys from 34.220.1.72
debug1: Host 'host1.company.com' is known and matches the ECDSA host key.
debug1: Found key in /Users/ansibleuser/.ssh/known_hosts:227
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent
debug1: Will attempt key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent
debug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent
debug1: Will attempt key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent
debug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ_Pem_SE.pem RSA SHA256:gT+8jyC5fZUlDsFRnOOzx5wihXD8VFBofyYeWLxcvOg agent
debug1: Will attempt key: /Users/ansibleuser/.ssh/Java_Lab.pem RSA SHA256:0bivZabBfiN/2f2BqfiZfCu9DOL8YKyy//IJ+hs/nls agent
debug1: Will attempt key: /Users/ansibleuser/.ssh/devops_level1_lab.pem RSA SHA256:taeGJ4amTq1T9hSq2/CNvvMl7/gqV2AoNaSZI79zohg agent
debug1: Will attempt key: /Users/ansibleuser/.ssh/id_dsa
debug1: Will attempt key: /Users/ansibleuser/.ssh/id_ecdsa
debug1: Will attempt key: /Users/ansibleuser/.ssh/id_ed25519
debug1: Will attempt key: /Users/ansibleuser/.ssh/id_xmss
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic
debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: gssapi-keyex,hostbased,publickey
debug3: authmethod_lookup gssapi-keyex
debug3: remaining preferred: hostbased,publickey
debug2: Unrecognized authentication method name: gssapi-keyex
debug3: authmethod_lookup publickey
debug3: remaining preferred: ,publickey
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: Offering public key: /Users/ansibleuser/.ssh/sys1.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: Offering public key: /Users/ansibleuser/.ssh/sys2.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: Offering public key: /Users/ansibleuser/.ssh/sys3.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /Users/ansibleuser/.ssh/sys3.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent
debug3: sign_and_send_pubkey: RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg
debug3: sign_and_send_pubkey: signing using rsa-sha2-512
debug3: send packet: type 50
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
Authenticated to host1.company.com ([34.220.1.72]:22).
debug2: fd 7 setting O_NONBLOCK
debug2: fd 8 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug1: Requesting authentication agent forwarding.
debug2: channel 0: request [email protected] confirm 0
debug3: send packet: type 98
debug2: fd 5 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x48
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: send packet: type 98
debug1: Sending environment.
debug3: Ignored env SHELL
debug3: Ignored env COLORTERM
debug3: Ignored env XPC_FLAGS
debug3: Ignored env TERM_PROGRAM_VERSION
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env GRADLE_HOME
debug3: Ignored env SPRINGBOOT_HOME
debug3: Ignored env SDKMAN_CANDIDATES_DIR
debug3: Ignored env PWD
debug3: Ignored env LOGNAME
debug3: Ignored env VSCODE_GIT_ASKPASS_NODE
debug3: Ignored env ANSIBLE_VAULT_PASSWORD_FILE
debug3: Ignored env HOME
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env SDKMAN_VERSION
debug3: Ignored env TMPDIR
debug3: Ignored env GIT_ASKPASS
debug3: Ignored env GROOVY_HOME
debug3: Ignored env TERM
debug3: Ignored env USER
debug3: Ignored env VSCODE_GIT_IPC_HANDLE
debug3: Ignored env MAVEN_HOME
debug3: Ignored env SDKMAN_DIR
debug3: Ignored env DISPLAY
debug3: Ignored env SHLVL
debug3: Ignored env SDKMAN_CANDIDATES_API
debug3: Ignored env XPC_SERVICE_NAME
debug3: Ignored env VSCODE_GIT_ASKPASS_MAIN
debug3: Ignored env PATH
debug3: Ignored env ORIGINAL_XDG_CURRENT_DESKTOP
debug3: Ignored env SDKMAN_PLATFORM
debug3: Ignored env VSCODEEXT_USER_AGENT
debug3: Ignored env __CF_USER_TEXT_ENCODING
debug3: Ignored env TERM_PROGRAM
debug3: Ignored env _
debug3: Ignored env __PYVENV_LAUNCHER__
debug1: Sending command: /bin/sh -c '/usr/bin/python /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/AnsiballZ_synchronize.py && sleep 0'
debug2: channel 0: request exec confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
debug3: receive packet: type 90
debug1: client_input_channel_open: ctype [email protected] rchan 2 win 65536 max 16384
debug2: fd 9 setting O_NONBLOCK
debug3: fd 9 is O_NONBLOCK
debug1: channel 1: new [authentication agent connection]
debug1: confirm [email protected]
debug3: send packet: type 91
debug3: receive packet: type 96
debug2: channel 1: rcvd eof
debug2: channel 1: output open -> drain
debug2: channel 1: obuf empty
debug2: channel 1: chan_shutdown_write (i0 o1 sock 9 wfd 9 efd -1 [closed])
debug2: channel 1: output drain -> closed
debug1: channel 1: FORCE input drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug3: send packet: type 96
debug2: channel 1: input drain -> closed
debug2: channel 1: send close
debug3: send packet: type 97
debug3: channel 1: will not send data after close
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])
debug2: channel 0: input open -> closed
debug3: receive packet: type 96
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug3: receive packet: type 97
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug3: channel 1: will not send data after close
debug3: channel 0: will not send data after close
debug3: channel 1: will not send data after close
debug2: channel 0: obuf empty
debug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])
debug2: channel 0: output drain -> closed
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug3: send packet: type 97
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 2
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)
#1 authentication agent connection (t4 r2 i3/0 o3/0 e[closed]/0 fd 9/9/-1 sock 9 cc -1)
debug3: channel 1: will not send data after close
debug3: receive packet: type 97
debug2: channel 1: rcvd close
debug3: channel 1: will not send data after close
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: authentication agent connection, nchannels 1
debug3: channel 1: status: The following connections are open:
#1 authentication agent connection (t4 r2 i3/0 o3/0 e[closed]/0 fd 9/9/-1 sock 9 cc -1)
debug3: send packet: type 1
debug3: fd 1 is not O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
Connection to host1.company.com closed.
Transferred: sent 6684, received 4560 bytes, in 0.7 seconds
Bytes per second: sent 9066.5, received 6185.4
debug1: Exit status 1
<host1.company.com> ESTABLISH SSH CONNECTION FOR USER: redhat
<host1.company.com> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="redhat"' -o ConnectTimeout=10 host1.company.com '/bin/sh -c '"'"'rm -f -r /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/ > /dev/null 2>&1 && sleep 0'"'"''
<host1.company.com> (0, b'', b'OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/ansibleuser/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug2: resolving "host1.company.com" port 22\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to host1.company.com [34.220.1.72] port 22.\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: fd 5 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9821 ms remain after connect\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa type 0\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519 type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss type -1\r\ndebug1: identity file /Users/ansibleuser/.ssh/id_xmss-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4\r\ndebug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: Authenticating to host1.company.com:22 as \'redhat\'\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected],zlib\r\ndebug2: compression stoc: none,[email protected],zlib\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected]\r\ndebug2: compression stoc: none,[email protected]\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:AAdSciJWX3ObYybJDi5x4dqMbFLhZPxOx+JF6qyBe+4\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: load_hostkeys: loaded 1 keys from host1.company.com\r\ndebug3: hostkeys_foreach: reading file "/Users/ansibleuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /Users/ansibleuser/.ssh/known_hosts:307\r\ndebug3: load_hostkeys: loaded 1 keys from 34.220.1.72\r\ndebug1: Host \'host1.company.com\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /Users/ansibleuser/.ssh/known_hosts:227\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/BiQ_Pem_SE.pem RSA SHA256:gT+8jyC5fZUlDsFRnOOzx5wihXD8VFBofyYeWLxcvOg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/Java_Lab.pem RSA SHA256:0bivZabBfiN/2f2BqfiZfCu9DOL8YKyy//IJ+hs/nls agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/devops_level1_lab.pem RSA SHA256:taeGJ4amTq1T9hSq2/CNvvMl7/gqV2AoNaSZI79zohg agent\r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_dsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_ed25519 \r\ndebug1: Will attempt key: /Users/ansibleuser/.ssh/id_xmss \r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-with-mic\r\ndebug3: remaining preferred: gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup gssapi-keyex\r\ndebug3: remaining preferred: hostbased,publickey\r\ndebug2: Unrecognized authentication method name: gssapi-keyex\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/id_rsa RSA SHA256:zfIcNwb57FqZP9pugwk0w2Nn67yIKAzU1xFWZGeer34 agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/4_4_Enablement.pem RSA SHA256:wECN4DL/gwI+XWehJFnQpdKruBBP18Ou0BwcelSqXms agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/BiQ-Pem-SE.pem RSA SHA256:BdVFQGgBorUc8VZ3VETep7mfVhU1vZLrSc2V9upzCZY agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic\r\ndebug1: Offering public key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/ansibleuser/.ssh/GenericVM.pem RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg agent\r\ndebug3: sign_and_send_pubkey: RSA SHA256:Jdng3tVXTutYOk7xTfpaDTwkjQ2cTo+B1Umz3FCr6gg\r\ndebug3: sign_and_send_pubkey: signing using rsa-sha2-512\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to host1.company.com ([34.220.1.72]:22).\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 0: new [client-session]\r\ndebug3: ssh_session2_open: channel_new: 0\r\ndebug2: channel 0: send open\r\ndebug3: send packet: type 90\r\ndebug1: Requesting [email protected]\r\ndebug3: send packet: type 80\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: network\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype [email protected] want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 0: callback start\r\ndebug1: Requesting authentication agent forwarding.\r\ndebug2: channel 0: request [email protected] confirm 0\r\ndebug3: send packet: type 98\r\ndebug2: fd 5 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x20\r\ndebug2: client_session2_setup: id 0\r\ndebug1: Sending environment.\r\ndebug3: Ignored env SHELL\r\ndebug3: Ignored env COLORTERM\r\ndebug3: Ignored env XPC_FLAGS\r\ndebug3: Ignored env TERM_PROGRAM_VERSION\r\ndebug3: Ignored env SSH_AUTH_SOCK\r\ndebug3: Ignored env GRADLE_HOME\r\ndebug3: Ignored env SPRINGBOOT_HOME\r\ndebug3: Ignored env SDKMAN_CANDIDATES_DIR\r\ndebug3: Ignored env PWD\r\ndebug3: Ignored env LOGNAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_NODE\r\ndebug3: Ignored env ANSIBLE_VAULT_PASSWORD_FILE\r\ndebug3: Ignored env HOME\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug2: channel 0: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug3: Ignored env SDKMAN_VERSION\r\ndebug3: Ignored env TMPDIR\r\ndebug3: Ignored env GIT_ASKPASS\r\ndebug3: Ignored env GROOVY_HOME\r\ndebug3: Ignored env TERM\r\ndebug3: Ignored env USER\r\ndebug3: Ignored env VSCODE_GIT_IPC_HANDLE\r\ndebug3: Ignored env MAVEN_HOME\r\ndebug3: Ignored env SDKMAN_DIR\r\ndebug3: Ignored env DISPLAY\r\ndebug3: Ignored env SHLVL\r\ndebug3: Ignored env SDKMAN_CANDIDATES_API\r\ndebug3: Ignored env XPC_SERVICE_NAME\r\ndebug3: Ignored env VSCODE_GIT_ASKPASS_MAIN\r\ndebug3: Ignored env PATH\r\ndebug3: Ignored env ORIGINAL_XDG_CURRENT_DESKTOP\r\ndebug3: Ignored env SDKMAN_PLATFORM\r\ndebug3: Ignored env VSCODEEXT_USER_AGENT\r\ndebug3: Ignored env __CF_USER_TEXT_ENCODING\r\ndebug3: Ignored env TERM_PROGRAM\r\ndebug3: Ignored env _\r\ndebug3: Ignored env __PYVENV_LAUNCHER__\r\ndebug1: Sending command: /bin/sh -c \'rm -f -r /home/redhat/.ansible/tmp/ansible-tmp-1592949683.653033-56163-168684408179301/ > /dev/null 2>&1 && sleep 0\'\r\ndebug2: channel 0: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug2: channel_input_open_confirmation: channel 0: callback done\r\ndebug2: channel 0: open confirm rwindow 0 rmax 32768\r\ndebug2: channel 0: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 0\r\ndebug2: exec request accepted on channel 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype exit-status reply 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 0 rtype [email protected] reply 0\r\ndebug2: channel 0: rcvd eow\r\ndebug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 0: input open -> closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 0: rcvd eof\r\ndebug2: channel 0: output open -> drain\r\ndebug2: channel 0: obuf empty\r\ndebug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 0: output drain -> closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 0: rcvd close\r\ndebug3: channel 0: will not send data after close\r\ndebug2: channel 0: almost dead\r\ndebug2: channel 0: gc: notify user\r\ndebug2: channel 0: gc: user detached\r\ndebug2: channel 0: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 0: is dead\r\ndebug2: channel 0: garbage collecting\r\ndebug1: channel 0: free: client-session, nchannels 1\r\ndebug3: channel 0: status: The following connections are open:\r\n #0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n\r\ndebug3: send packet: type 1\r\ndebug3: fd 1 is not O_NONBLOCK\r\ndebug1: fd 2 clearing O_NONBLOCK\r\nTransferred: sent 4008, received 2888 bytes, in 0.7 seconds\r\nBytes per second: sent 6087.1, received 4386.1\r\ndebug1: Exit status 0\r\n')
fatal: [controller -> host1.company.com]: FAILED! => {
"changed": false,
"cmd": "/usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ForwardAgent=yes --out-format=<<CHANGED>>%i %n%L /opt/appdynamics/appd-cluster-connector-20200623220055.tgz [email protected]:/tmp/appd-cluster-connector.tgz",
"invocation": {
"module_args": {
"_local_rsync_password": null,
"_local_rsync_path": "rsync",
"_substitute_controller": false,
"archive": true,
"checksum": false,
"compress": true,
"copy_links": false,
"delete": false,
"dest": "[email protected]:/tmp/somefile.tar.gz",
"dest_port": null,
"dirs": false,
"existing_only": false,
"group": null,
"link_dest": null,
"links": null,
"mode": "push",
"owner": null,
"partial": false,
"perms": null,
"private_key": null,
"recursive": null,
"rsync_opts": [],
"rsync_path": null,
"rsync_timeout": 0,
"set_remote_user": true,
"src": "/some/directory/somefile.tar.gz",
"ssh_args": "-o ForwardAgent=yes",
"times": null,
"verify_host": false
}
},
"msg": "Warning: Permanently added 'host2.company.com,IP-REDACTED' (ECDSA) to the list of known hosts.\r\nReceived disconnect from IP-REDACTED port 22:2: Too many authentication failures\r\nAuthentication failed.\r\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]\n",
"rc": 255
}
PLAY RECAP *******************************************************************************************************************************************************************************************
host2 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
NB - I updated my inventory adding ansible_ssh_user
to match ansible_user
on host2 and the operation succeeded
Digging through the source
https://github.com/ansible/ansible/blob/stable-2.9/lib/ansible/plugins/action/synchronize.py#L320
This section appears to need some care & feeding to consider ansible_user
Copied from original issue: ansible/ansible#70248
LICENSE (GPL 3.0) states (cc @sk4zuzu who noticed this):
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; [..]
At the same time author attributions were lost during migration ansible
→ ansible.posix
:
I am not a lawyer, so I would appreciate if someone familiar with licensing nuances address the licensing concern: won't this loss of author attribution become a problem for any company that wants to use Ansible AND comply with GPL?
I save my custom configurations under /etc/sysctl.d/10-performance.conf (performance configs). The problem is when this file is created it has a very restrictive permission, 0600 to be exactly. Should be 0644 as the other files.
sysctl
ansible 2.10.0
config file = /home/mhalano/projs/infra-marcos-new/ansible.cfg
configured module search path = ['/home/mhalano/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.8.6 (default, Sep 25 2020, 09:36:53) [GCC 10.2.0]
INTERPRETER_PYTHON(/home/mhalano/projs/infra-marcos-new/ansible.cfg) = auto
Ubuntu 20.10 but using the ansible-base package from Eoan on the official repository.
.1 Execute this minimum tasks:
- name: Reduce Swappiness
sysctl:
name: vm.swappiness
value: "10"
reload: yes
state: present
sysctl_file: /etc/sysctl.d/10-performance.conf
The file /etc/sysctl.d/10-performance.conf should have as permission 0644.
The file /etc/sysctl.d/10-performance.conf has permission 0600 even if it is not a critical file (security key or whereveer)
mhalano@glados:~/projs/infra-marcos-new$ ls -lh /etc/sysctl.d/10-performance.conf
-rw------- 1 root root 42 out 30 16:34 /etc/sysctl.d/10-performance.conf
The argument user
on authorized_key should not be required
module: authorized_key
The possibility of disabling permissions handling entirely is required for instance, if we like to implement a whole-system key revocation playbook. In my opinion it is a good reason enabling the module to "lazy" process random authorized_keys files given by a path without mangling the permissions.
Sadly also glob does not work on a remote, hence we allready use a little command hack to find target-files. If we where now able to process random authorized_keys files we could archive the rest without using shell invoking some hacky sed'ing.
Having the authorized_key module available for this would improve security, because implementing a state and valid-key check while iterating over the __revoked__.pub
-file in sed or lineinfile would break the rules of ansible in terms of "is not a programming language". But we where forced to. Just imagine an excess newline. o.O
- name: authorized_keys
block:
- name: Collect all available files
command: chdir=/ find /root /etc /home /var -type f -name authorized_keys -print
register: authorized_keys_files
- name: Delete revoked keys from all users
authorized_key:
path: "{{ item }}"
state: absent
manage_dir: no
key: "{{ lookup('file', 'pubkeys/__revoked__.pub') }}"
with_items:
- "{{ authorized_keys_files.stdout_lines }}"
Acl check should not failed when a variable which is not related to the current state is set.
acl
ansible 2.10.2
python version = 3.8.6 (default, Sep 30 2020, 04:00:38) [GCC 10.2.0]
NA
Archlinux
- name: Set ACL permission
acl:
path: "{{ acl_path }}"
entity: "{{ acl_group }}"
etype: group
permissions: "{{ acl_group_perm }}"
recursive: true
state: "{{ acl_state }}"
with those vars:
act_path: /my_path
acl_group: my_group
acl_perm: 'rwx'
acl_state: absent
It should remove the acl, as we set the state to 'absent'.
It failed with the error message:
'permissions' MUST NOT be set when 'state=absent'
The check is here in the source code:
https://github.com/ansible-collections/ansible.posix/blob/main/plugins/modules/acl.py#L305-L307
And we can read few line later that the permission variable is not used when the state is absent:
https://github.com/ansible-collections/ansible.posix/blob/main/plugins/modules/acl.py#L351-L361
My first point is that it should not failed, because the permission variable has no impact on the executed code when the state is absent. So the check protection is useless, It is not used to secure the code execution.
So I think it may be a warning ( maybe for best practice ) but it should not failed.
My second point which I think is also an issue, is that if you want to use a variable to set the state of the acl, then you must duplicate your code, something like:
- name: Set ACL permission
acl:
path: "{{ acl_path }}"
entity: "{{ acl_group }}"
etype: group
permissions: "{{ acl_group_perm }}"
recursive: true
state: "{{ acl_state }}"
when: acl_state != "absent"
- name: Set ACL permission
acl:
path: "{{ acl_path }}"
entity: "{{ acl_group }}"
etype: group
recursive: true
state: "{{ acl_state }}"
when: acl_state == "absent"
And as you know, duplicate code for long term maintenance is never a good idea.
I am attempting to synchronize in push mode a couple of directories from one remote host (A) to a second remote host (B). The rsync command shown in ansible's output works as expected when run on remote host A.
Synchronize module
ansible 2.9.9
config file = /home/evan/repos/infrastructure_ansible/ansible.cfg
configured module search path = [u'/home/evan/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.17 (default, Apr 15 2020, 17:20:14) [GCC 7.5.0]
Ansible host: Ubuntu 18.04
Remote hosts: Ubuntu 18.04
- synchronize: # push from alpha to others
mode: push
src: "/home/{{ ansible_user }}/robot_code/cloud_sync_siam"
dest: "/home/{{ ansible_user }}/robot_code"
recursive: 'yes'
delete: 'yes'
rsync_opts: --rsh="/usr/bin/ssh -o PasswordAuthentication=no -i /home/{{ ansible_user }}/.ssh/team_van_rsa"
become: "{{ ansible_user }}"
delegate_to: "{{ inventory_host }}"
A successful rsync from the delegated remote host to remote host B
It appears that the ssh key to be used for connecting from remote host A to remote host B cannot be found. However, the given rsync command runs as expected when run as {{ ansible_user }} on the delegated host (after including quotes around the --out-format).
TASK [abii-updater : synchronize] *******************************************************************************************
fatal: [thruway-dev-bravo -> 13.68.168.84]: FAILED! => changed=false
cmd: /usr/bin/rsync --delay-updates -F --compress --delete-after --archive --rsh="/usr/bin/ssh -o PasswordAuthentication=no -i /home/azureuser/.ssh/team_van_rsa" --out-format=<<CHANGED>>%i %n%L /home/azureuser/robot_code/cloud_sync_siam [email protected]:/home/azureuser/robot_code
invocation:
module_args:
_local_rsync_password: null
_local_rsync_path: rsync
_substitute_controller: false
archive: true
checksum: false
compress: true
copy_links: false
delete: true
dest: [email protected]:/home/azureuser/robot_code
dest_port: 22
dirs: false
existing_only: false
group: null
link_dest: null
links: null
mode: push
owner: null
partial: false
perms: null
private_key: /home/evan/.ssh/team_van_rsa
recursive: true
rsync_opts:
- --rsh="/usr/bin/ssh -o PasswordAuthentication=no -i /home/azureuser/.ssh/team_van_rsa"
rsync_path: null
rsync_timeout: 0
set_remote_user: true
src: /home/azureuser/robot_code/cloud_sync_siam
ssh_args: null
times: null
verify_host: false
msg: |-
rsync: Failed to exec /usr/bin/ssh -o PasswordAuthentication=no -i /home/azureuser/.ssh/team_van_rsa: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(85) [sender=3.1.2]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in IPC code (code 14) at io.c(235) [sender=3.1.2]
rc: 14
According to the synchronize module documentation:
The user and permissions for the synchronize dest are those of the remote_user on the destination host or the become_user if become=yes is active.
I have the following task which I execute on macbookC
against server serverB
(the ansible_host
) through root
(the remote_user
):
- name: Synchronize configs to remote
become: true
become_user: appowner
synchronize:
src: "/opt/appowner/appdir/app/"
dest: "/opt/appowner/appdir/app/"
rsync_path: "/bin/rsync"
rsync_opts:
- "--prune-empty-dirs"
delegate_to: "serverA"
As you can see, become=yes
is active, so I am expecting that the become_user
is used as the user for the synchronize dest.
My goal is to synchronize all the files in serverA:/opt/appowner/appdir/app/
to serverB:/opt/appowner/appdir/app/
. All these files and directories are owned by the application user called appowner
.
synchronize module
ansible 2.9.4
config file = /Users/myuser/PROJECTS/ansibledevel/ansible.cfg
configured module search path = ['/Users/myuser/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Library/Python/3.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.7.3 (default, Dec 13 2019, 19:58:14) [Clang 11.0.0 (clang-1100.0.33.17)]
ANSIBLE_PIPELINING(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = True
DEFAULT_CALLBACK_WHITELIST(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['profile_tasks']
DEFAULT_INVENTORY_PLUGIN_PATH(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['/Users/myuser/PROJECTS/ansibledevel/additional_plugins/inventory']
DEFAULT_LOOKUP_PLUGIN_PATH(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['/Users/myuser/PROJECTS/ansibledevel/additional_plugins/lookup']
DEFAULT_ROLES_PATH(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['/Users/myuser/PROJECTS/ansibledevel/roles', '/etc/ansible/roles']
DEFAULT_STDOUT_CALLBACK(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = skippy
INVENTORY_ENABLED(/Users/myuser/PROJECTS/ansibledevel/ansible.cfg) = ['host_list', 'script', 'yaml', 'auto', 'ini', 'tpm_inventory']
Target host is a centos 7.7
VM.
appowner
exists on both serverB
and serverA
.appowner
on serverA
can login via SSH to serverB
password-less.serverB
(the ansible_host
) through root
(the remote_user
).ansible-playbook -i inventory/ -u root --limit serverB playbooks/configapp.yml
rsync
on serverA
should connect to serverB
using the become_user
: appowner
.
rsync
on serverA
connects to serverB
using the remote_user
: root
.
TASK [app-setup : Synchronize configs to remote] *******************************************************************************************************************
task path: /Users/myuser/PROJECTS/ansibledevel/roles/app-setup/tasks/remote-setup.yml:112
Thursday 04 June 2020 16:55:39 +0200 (0:00:00.059) 0:00:35.988 *********
Using module file /Library/Python/3.7/site-packages/ansible/modules/files/synchronize.py
Pipelining is enabled.
<appserver-01> ESTABLISH SSH CONNECTION FOR USER: root
<appserver-01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/myuser/.ansible/cp/a83849d8c3 appserver-01 '/bin/sh -c '"'"'sudo -H -S -n -u appowner /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-uqvneuvaftwbxzwrcgbenppeuzioupqe ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<appserver-01> (1, b'\n{"msg": "Warning: Permanently added \'appserver-02,10.10.10.102\' (ECDSA) to the list of known hosts.\\r\\nPermission denied, please try again.\\r\\nPermission denied, please try again.\\r\\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\\r\\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\\nrsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]\\n", "failed": true, "cmd": "/bin/rsync --delay-updates -F --compress --archive --rsh=/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --rsync-path=/bin/rsync --prune-empty-dirs --out-format=<<CHANGED>>%i %n%L /opt/appowner/appdir/app/ root@appserver-02:/opt/appowner/appdir/app/", "rc": 255, "invocation": {"module_args": {"partial": false, "links": null, "copy_links": false, "perms": null, "link_dest": null, "owner": null, "_local_rsync_password": null, "archive": true, "dest_port": null, "_local_rsync_path": "rsync", "group": null, "recursive": null, "rsync_path": "/bin/rsync", "_substitute_controller": false, "verify_host": false, "dirs": false, "private_key": null, "dest": "root@appserver-02:/opt/appowner/appdir/app/", "compress": true, "rsync_opts": ["--prune-empty-dirs"], "rsync_timeout": 0, "set_remote_user": true, "existing_only": false, "src": "/opt/appowner/appdir/app/", "checksum": false, "times": null, "mode": "push", "ssh_args": null, "delete": false}}}\n', b'/etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory\n')
<appserver-01> Failed to connect to the host via ssh: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
fatal: [appserver-02 -> appserver-01]: FAILED! => {
"changed": false,
"cmd": "/bin/rsync --delay-updates -F --compress --archive --rsh=/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --rsync-path=/bin/rsync --prune-empty-dirs --out-format=<<CHANGED>>%i %n%L /opt/appowner/appdir/app/ root@appserver-02:/opt/appowner/appdir/app/",
"invocation": {
"module_args": {
"_local_rsync_password": null,
"_local_rsync_path": "rsync",
"_substitute_controller": false,
"archive": true,
"checksum": false,
"compress": true,
"copy_links": false,
"delete": false,
"dest": "root@appserver-02:/opt/appowner/appdir/app/",
"dest_port": null,
"dirs": false,
"existing_only": false,
"group": null,
"link_dest": null,
"links": null,
"mode": "push",
"owner": null,
"partial": false,
"perms": null,
"private_key": null,
"recursive": null,
"rsync_opts": [
"--prune-empty-dirs"
],
"rsync_path": "/bin/rsync",
"rsync_timeout": 0,
"set_remote_user": true,
"src": "/opt/appowner/appdir/app/",
"ssh_args": null,
"times": null,
"verify_host": false
}
},
"msg": "Warning: Permanently added 'appserver-02,10.10.10.102' (ECDSA) to the list of known hosts.\r\nPermission denied, please try again.\r\nPermission denied, please try again.\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]\n",
"rc": 255
}
When debug
stdout_callback plugin is used, multi messages from a single debug
module call is printed as a Python sequence representation instead of printing them verbatimly, preventing user from reading it easily, refer the issue production for an example.
As a side issue non-ASCII characters are printed as Unicode escapes in this case, though this problem is only reproduced when the controller node's Python interpreter is in version 2.
debug
ansible 2.9.6
config file = /vagrant/ansible.cfg
configured module search path = [u'/home/vagrant/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
DEFAULT_STDOUT_CALLBACK(/home/vagrant/ansible.cfg) = debug
Controller: CentOS 7
Managed node: CentOS 7
[defaults]
stdout_callback = debug
- name: Test Ansible issue
gather_facts: False
hosts: localhost
tasks:
- name: Print single message
debug:
msg: 'Welcome to the world of Ansible / 歡迎來到Ansible的世界 / Ansibleの世界へようこそ'
- name: Print multiple messages at once
debug:
msg:
- 'Welcome to the world of Ansible'
- '歡迎來到Ansible的世界'
- 'Ansibleの世界へようこそ'
In the Print multiple messages at once
task the messages should be printed in plain order.
TASK [Print single message] ******************************************************************************************
ok: [localhost] => {}
MSG:
Welcome to the world of Ansible / 歡迎來到Ansible的世界 / Ansibleの世界へようこそ
TASK [Print multiple messages at once] *******************************************************************************
ok: [localhost] => {}
MSG:
Welcome to the world of Ansible
歡迎來到Ansible的世界
Ansibleの世界へようこそ
In the Print multiple messages at once
task the messages are printed as a Python sequence markup. Also if the controller's Python interpreter is 2 non-ASCII characters are printed as Unicode escape sequences.
TASK [Print single message] ******************************************************************************************
ok: [localhost] => {}
MSG:
Welcome to the world of Ansible / 歡迎來到Ansible的世界 / Ansibleの世界へようこそ
TASK [Print multiple messages at once] *******************************************************************************
ok: [localhost] => {}
MSG:
[u'Welcome to the world of Ansible', u'\u6b61\u8fce\u4f86\u5230Ansible\u7684\u4e16\u754c', u'Ansible\u306e\u4e16\u754c\u3078\u3088\u3046\u3053\u305d']
The CLI commands to mount an ISO with macOS 10.15.7 are illustrated below:
$ hdiutil attach -nomount /tmp/ubuntu-20.04.1-live-server-amd64.iso
/dev/disk3 Apple_partition_scheme
/dev/disk3s1 Apple_partition_map
/dev/disk3s2 Apple_HFS
$ mount -t cd9660 /dev/disk3 iso
$ cd iso
$ ls
EFI boot dists isolinux pics preseed
README.diskdefines casper install md5sum.txt pool ubuntu
Note that this is a two step process. Also note the type of cd9660
. The type of cd9660
is not documented here:
https://docs.ansible.com/ansible/latest/collections/ansible/posix/mount_module.html
An equivalent in Ansible would appear to be:
- name: Mount Ubuntu ISO
ansible.posix.mount:
path: "iso"
src: src="/tmp/ubuntu-20.04.1-live-server-amd64.iso"
fstype: cd9660
opts: auto
state: mounted
That results in:
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"backup": false,
"boot": true,
"dump": null,
"fstab": null,
"fstype": "cd9660",
"opts": "auto",
"passno": null,
"path": "/tmp/ubuntu20/iso",
"src": "src=\"/tmp/ubuntu-20.04.1-live-server-amd64.iso\"",
"state": "mounted"
}
},
"msg": "Error mounting /tmp/ubuntu20/iso: mount_cd9660: No such file or directory\nmount: /private/tmp/ubuntu20/iso failed with 1\n"
}
I suspect that this is because the hdiutil
stage illustrated above is not executed.
ansible.posix.mount
ansible 2.9.13
config file = None
configured module search path = ['/Users/xxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/homebrew/Cellar/ansible/2.9.13_1/libexec/lib/python3.9/site-packages/ansible
executable location = /usr/local/homebrew/bin/ansible
python version = 3.9.0 (default, Oct 28 2020, 16:23:50) [Clang 12.0.0 (clang-1200.0.32.21)]
Note that there was no output from ansible-config dump --only-changed
.
macOS 10.15.7 (19H2)
1 - Have a ISO file in /tmp
, e.g. /tmp/ubuntu-20.04.1-live-server-amd64.iso
2 - Create a directory iso
, e.g. mkdir iso
2 - Run the playbook below, e.g. sudo ansible-playbook -vvv mount.yml
- name: Mount Ubuntu ISO
ansible.posix.mount:
path: "iso"
src: src="/tmp/ubuntu-20.04.1-live-server-amd64.iso"
fstype: cd9660
opts: auto
state: mounted
I expect to see the ISO mounted, as it is with the commands illustrated in the summary above.
The mount fails with file not found.
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"backup": false,
"boot": true,
"dump": null,
"fstab": null,
"fstype": "cd9660",
"opts": "auto",
"passno": null,
"path": "/tmp/ubuntu20/iso",
"src": "src=\"/tmp/ubuntu-20.04.1-live-server-amd64.iso\"",
"state": "mounted"
}
},
"msg": "Error mounting /tmp/ubuntu20/iso: mount_cd9660: No such file or directory\nmount: /private/tmp/ubuntu20/iso failed with 1\n"
}
For the purposes of compare and contrast between macOS and Ubuntu, I have reduced the playbook to the following structure, and I provide examples of execution on macOS, and then Ubuntu.
- name: Mount Ubuntu ISO
action: mount name="{{ WorkingDir }}/iso" src="{{ TempDir }}/{{ UbuntuISO }}" opts=loop fstype=iso9660 state=mounted
macOS 10.15.7:
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"backup": false,
"boot": true,
"dump": null,
"fstab": null,
"fstype": "iso9660",
"name": "/tmp/ubuntu20/iso",
"opts": "loop",
"passno": null,
"path": "/tmp/ubuntu20/iso",
"src": "/tmp/ubuntu-20.04.1-live-server-amd64.iso",
"state": "mounted"
}
},
"msg": "Error mounting /tmp/ubuntu20/iso: mount: exec /Library/Filesystems/iso9660.fs/Contents/Resources/mount_iso9660 for /private/tmp/ubuntu20/iso: No such file or directory\nmount: /private/tmp/ubuntu20/iso failed with 72\n"
}
Ubuntu 20.04.1
changed: [localhost] => {
"changed": true,
"dump": "0",
"fstab": "/etc/fstab",
"fstype": "iso9660",
"invocation": {
"module_args": {
"backup": false,
"boot": true,
"dump": null,
"fstab": null,
"fstype": "iso9660",
"name": "/tmp/ubuntu20/iso",
"opts": "loop",
"passno": null,
"path": "/tmp/ubuntu20/iso",
"src": "/tmp/ubuntu-20.04.1-live-server-amd64.iso",
"state": "mounted"
}
},
"name": "/tmp/ubuntu20/iso",
"opts": "loop",
"passno": "0",
"src": "/tmp/ubuntu-20.04.1-live-server-amd64.iso"
}
when attempting to retrieve ssh public key from github / gitlab in the form of https://gitlab.com/user.keys
task fails with following error
"msg": "invalid key specified: <!DOCTYPE html>"
authorized_key
ansible 2.9.14
config file = /Users/seaton/Documents/src/ansible-production/ansible.cfg
configured module search path = ['/Users/seaton/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/Cellar/ansible/2.9.14/libexec/lib/python3.9/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.9.0 (default, Oct 27 2020, 14:15:17) [Clang 12.0.0 (clang-1200.0.32.21)]
DEFAULT_MANAGED_STR(/Users/seaton/Documents/src/ansible-production/ansible.cfg) = WARNING: This file is Ansible managed - any manual changes will be overwritten
DEFAULT_ROLES_PATH(/Users/seaton/Documents/src/ansible-production/ansible.cfg) = ['/Users/seaton/Documents/src/ansible-production/roles']
HOST_KEY_CHECKING(/Users/seaton/Documents/src/ansible-production/ansible.cfg) = False
target os: Centos 7
run authorized_keys task against gitlab / github to retrieve a users public ssh key
vars:
users_list:
- username: gitlab-runner
type: admin
state: present
- username: ansible
type: admin
state: present
gitlab_host: gitlab.xxx.xx
- name: Get gitlab key(s) and update the authorized_keys file
authorized_key:
user: "{{ item.username }}"
key: "https://{{ gitlab_host }}/{{ item.username }}.keys"
state: present
validate_certs: False
when: item.get('state', 'present') == 'present'
with_items: "{{ users_list }}"
tags:
- users
- sshkeys
work as it previously did, retrieve the ssh pubkeys for the user and add to the relevant users authorized_keys on the remote host
Error received
failed: [172.16.x.xx] (item={'username': 'gitlab-runner', 'type': 'admin', 'state': 'present'}) => {
"ansible_loop_var": "item",
"changed": false,
"invocation": {
"module_args": {
"comment": null,
"exclusive": false,
"follow": false,
"key": "https://gitlab.xxx.xx/gitlab-runner.keys",
"key_options": null,
"keyfile": "/home/gitlab-runner/.ssh/authorized_keys",
"manage_dir": true,
"path": null,
"state": "present",
"user": "gitlab-runner",
"validate_certs": false
}
},
"item": {
"state": "present",
"type": "admin",
"username": "gitlab-runner"
},
"msg": "invalid key specified: <!DOCTYPE html>"
}
I'm unable to use synchronize Ansible module to copy files from a server A to server B
I'm using a shared user between thoses servers to authorize ssh connection without password by using ssh key.
But when I launch the synchronize module it seems it's the wrong user that it is used in the dest...
synchronize
ansible 2.9.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
CentOS 7.7
- name: "Copy all files from {{ old_server }} to {{ inventory_hostname }}"
synchronize:
src: "{{ item }}"
dest: "{{ item }}"
delegate_to: "{{ old_server }}"
become: yes
become_user: "{{ my_shared_user }}"
with_items:
- "/tmp/toto"
tags: copy_files
I should be able to copy files.
Now It seems the dest is wrong in the tmp python file
ANSIBALLZ_PARAMS = '{"ANSIBLE_MODULE_ARGS": {"_ansible_version": "2.9.3", "src": "/tmp/toto", "_ansible_syslog_facility": "LOG_USER", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p", "vfat"], "_ansible_no_log": false, "_local_rsync_path": "rsync", "dest": "root@old_server:/tmp/toto", "_ansible_module_name": "synchronize", "_ansible_remote_tmp": "$HOME/.ansible/tmp", "_ansible_verbosity": 4, "_ansible_keep_remote_files": false, "_local_rsync_password": null, "_ansible_socket": null, "_ansible_string_conversion_action": "warn", "_ansible_diff": false, "_ansible_debug": false, "_ansible_shell_executable": "/bin/sh", "_ansible_check_mode": false, "_ansible_tmpdir": null, "rsync_path": "sudo rsync"}}'
Why it's "root@old_server" instead of the user in the become_user ?
Thank you very much for your help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.