Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

selinux

ANSIBLE VERSION

ansible-playbook 2.4.0.0
config file = /home/henrys/.ansible.cfg
configured module search path = [u'/home/henrys/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /tmp/ans24/lib/python2.7/site-packages/ansible
executable location = /tmp/ans24/bin/ansible-playbook
python version = 2.7.14 (default, Sep 20 2017, 01:25:59) [GCC 7.2.0]

CONFIGURATION

ANSIBLE_SSH_CONTROL_PATH(/home/henrys/.ansible.cfg) = ~/.ssh/ansible-%%r@%%h:%%p
CACHE_PLUGIN(/home/henrys/.ansible.cfg) = jsonfile
CACHE_PLUGIN_CONNECTION(/home/henrys/.ansible.cfg) = /tmp/ansiblecache
CACHE_PLUGIN_TIMEOUT(/home/henrys/.ansible.cfg) = 7200
DEFAULT_FORKS(/home/henrys/.ansible.cfg) = 30
DEFAULT_GATHERING(/home/henrys/.ansible.cfg) = smart
DEFAULT_HOST_LIST(env: ANSIBLE_INVENTORY) = [u'/home/henrys/git/infrastructure/hosts']
DEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /home/henrys/.ansible/.vaultfile
HOST_KEY_CHECKING(env: ANSIBLE_HOST_KEY_CHECKING) = False
RETRY_FILES_SAVE_PATH(env: ANSIBLE_RETRY_FILES_SAVE_PATH) = /tmp

OS / ENVIRONMENT

Source: Linux/OSX (python2.7 & 3.6)

Dest: CentOS 7.4

SUMMARY

The selinux module updates the file /etc/selinux/config without proper line breaks . This causes the entire file to be read by selinux as a comment, thus reverting selinux to its defaults.

STEPS TO REPRODUCE

$> ansible -m selinux -a "state=disabled" -Kb

EXPECTED RESULTS

Ansible 2.3.2.0:

[henrys@nyjexp001 ~]$ cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

$> ansible -m selinux -a "state=disabled" nyjexp001 -Kb
SUDO password:
nyjexp001 | SUCCESS => {
"changed": true,
"configfile": "/etc/selinux/config",
"msg": "config state changed from 'enforcing' to 'disabled'",
"policy": "targeted",
"state": "disabled"
}

[henrys@nyjexp001 ~]$ cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

ACTUAL RESULTS

Ansible 2.4.0.0:

[henrys@nyjexp001 ~]$ cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

$> ansible -m selinux -a "state=disabled" nyjexp001 -Kb
SUDO password:
nyjexp001.exelator.com | SUCCESS => {
"changed": true,
"configfile": "/etc/selinux/config",
"failed": false,
"msg": "config state changed from 'enforcing' to 'disabled'",
"policy": "targeted",
"state": "disabled"
}

[henrys@nyjexp001 ~]$ cat /etc/selinux/config
# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=disabled# SELINUXTYPE= can take one of three two values:# targeted - Targeted processes are protected,# minimum - Modification of targeted policy. Only selected processes are protected. #[henrys@nyjexp001 ~]$

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

delegate_to

ANSIBLE VERSION

ansible 2.2.1.0
config file = /home/muller/git/devops/ansible/dev/ansible.cfg
configured module search path = ['../../lib/ansible/modules']

ansible 2.4.0
config file = /home/muller/git/devops/ansible/dev/ansible.cfg
configured module search path = [u'/home/muller/git/devops/lib/ansible/modules']
ansible python module location = /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible
executable location = /home/muller/ansible-devel/bin/ansible
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

CONFIGURATION

[defaults]
action_plugins = ../../lib/ansible/plugins/action
ansible_managed = Ansible managed file {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
callback_plugins = ../../lib/ansible/plugins/callback
command_warnings = True
connection_plugins = ../../lib/ansible/plugins/connection
deprecation_warnings = True
display_skipped_hosts = True
filter_plugins = ../../lib/ansible/plugins/filter
forks = 5
gathering = smart
gather_subset = "!ohai"
inventory = ./inventory
library = ../../lib/ansible/modules
log_path = ./ansible.log
lookup_plugins = ../../lib/ansible/plugins/lookup
module_name = command
nocolor = 0
nocows = 1
hosts = DISABLED_TO_PREVENT_SURPRISES
poll_interval = 15
roles_path = ../../roles
squash_actions = apk,apt,dnf,package,pacman,pkgng,yum,zypper
strategy_plugins = ../../lib/ansible/plugins/strategy
sudo_user = root
timeout = 10
vars_plugins = ../../lib/ansible/plugins/vars
test_plugins = ../../lib/ansible/plugins/test
cache_plugins = ../../lib/ansible/plugins/cache

[privilege_escalation]
[paramiko_connection]
record_host_keys = False

[ssh_connection]
ssh_args = -o PasswordAuthentication=no -o ControlMaster=auto -o ControlPersist=600s
scp_if_ssh = True
pipelining = True

OS / ENVIRONMENT

Distributor ID:	LinuxMint

Description:	Linux Mint 18.1 Serena

Release:	18.1

Codename:	serena

SUMMARY

delegate_to: omit connects to the right host, but forgets to use ansible_user from the inventory

from the output:

<10.204.90.72> ESTABLISH SSH CONNECTION FOR USER: devops

vs

<test-db1.dev> ESTABLISH SSH CONNECTION FOR USER: None

STEPS TO REPRODUCE

inventory:

test-db1.dev ansible_host=10.204.90.72 ansible_user=devops
test-db2.dev ansible_host=10.204.90.113 ansible_user=devops

playbook:

---

- name: test
hosts: all
gather_facts: yes
tasks:

- command: 'hostname'
run_once: true

- command: 'hostname'
delegate_to: "{{ delegatehost | default(inventory_hostname) }}"
run_once: true

- command: 'hostname'
delegate_to: "{{ delegatehost | default(omit) }}"
run_once: true

EXPECTED RESULTS

TASK [command] *******************************************************************************************************************************************************************************************************************************
changed: [test-db1.dev -> 10.204.90.72]
cmd: hostname
stdout:
test-db1

TASK [command] *******************************************************************************************************************************************************************************************************************************
changed: [test-db1.dev -> 10.204.90.72]
cmd: hostname
stdout:
test-db1

ACTUAL RESULTS

ansible-playbook 2.4.0
config file = /home/muller/git/devops/ansible/dev/ansible.cfg
configured module search path = [u'/home/muller/git/devops/lib/ansible/modules']
ansible python module location = /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible
executable location = /home/muller/ansible-devel/bin/ansible-playbook
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
Using /home/muller/git/devops/ansible/dev/ansible.cfg as config file
Parsed /home/muller/git/devops/ansible/dev/inventory inventory source with ini plugin

PLAYBOOK: test.yml ***************************************************************************************************************************************************************************************************************************
1 plays in test.yml

PLAY [test] **********************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/basic.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/__init__.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/collector.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/namespace.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/default_collectors.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/_text.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/pycompat24.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/six/__init__.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/six/_six.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/timeout.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/freebsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/openbsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/base.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/dragonfly.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/dragonfly.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/aix.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/aix.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/linux.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/platform.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/hpux.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/user.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/hurd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/other/facter.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/sunos.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/hpux.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/distribution.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/freebsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/__init__.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/openbsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/darwin.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/linux.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/sunos.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/sunos.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/apparmor.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/openbsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/local.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/other/ohai.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/other/__init__.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/service_mgr.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/hurd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/hpux.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/fips.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/selinux.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/__init__.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/pkg_mgr.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/dns.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/base.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/darwin.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/dragonfly.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/ssh_pub_keys.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/__init__.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/__init__.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/lsb.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/date_time.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/netbsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/base.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/cmdline.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/freebsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/netbsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/netbsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/caps.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/env.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/linux.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/system/python.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/network/generic_bsd.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/virtual/sysctl.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/utils.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/facts/sysctl.py
Using module file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/modules/system/setup.py
<10.204.90.72> ESTABLISH SSH CONNECTION FOR USER: devops
Using module file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/modules/system/setup.py
<10.204.90.72> SSH: EXEC ssh -o PasswordAuthentication=no -o ControlMaster=auto -o ControlPersist=600s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=devops -o ConnectTimeout=10 -o ControlPath=/home/muller/.ansible/cp/27127c052e 10.204.90.72 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.204.90.113> ESTABLISH SSH CONNECTION FOR USER: devops
<10.204.90.113> SSH: EXEC ssh -o PasswordAuthentication=no -o ControlMaster=auto -o ControlPersist=600s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=devops -o ConnectTimeout=10 -o ControlPath=/home/muller/.ansible/cp/237beb25f8 10.204.90.113 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.204.90.72> (0, '\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["!ohai"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "changed": false, "ansible_facts": {"ansible_product_serial": "NA", "ansible_form_factor": "Desktop", "ansible_distribution_file_parsed": true, "ansible_fips": false, "ansible_service_mgr": "systemd", "ansible_user_id": "devops", "ansible_selinux_python_present": false, "ansible_userspace_bits": "64", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCxINguKDMjaVD9UEY7wZJwJWhev6Sh2jcmJ8M8kEKjUGR0IwAF75/k94nuN+0J3a1Q+vMUSsGTo4SeHyrJkFemP04J2YrWs6HSgu6D9fXQpymwszFFjHcp8d/JbnJRjXTG5wzsvu7UcLqc74Ik29I8XlBfkY7lL1o4Ge/Hl7i/uqqe5O9BcwmrNaJ1tibFtX+WZu3Zngn5HLHZlAtyKlnkshrcYBVuovocPJxOcBUQzkCejELpIOsTDRzhVgL9hGPcLNxZOBOzMQLFbFJPIjHslIbXTPsyDSjamTQ4zH8TZ5FUAZxkBlS583/GY/qkg87U8yQxP7xeXZWOcpmxl/r9", "gather_subset": ["!ohai"], "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHJPf0k+hqeV9jVaFB+R0Z+OMhBXSlWMTRJwGnVquwUM64GaFFRhlKF1dthgXsvpD+kOy4El9/8s+gm04Ho+d70=", "ansible_local": {}, "ansible_distribution_version": "16.04", "ansible_domain": "", "ansible_distribution_file_path": "/etc/os-release", "ansible_device_links": {"masters": {"sdb1": ["dm-1", "dm-2"], "sda3": ["dm-0"], "dm-0": ["dm-3"]}, "labels": {}, "ids": {}, "uuids": {}}, "ansible_virtualization_type": "lxc", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILYk/1/uYbEGWJUAKEHU5kD2P60YfWZp1zDGC3+EsreZ", "ansible_processor_cores": 4, "ansible_virtualization_role": "guest", "ansible_distribution_file_variety": "Debian", "ansible_dns": {"nameservers": ["10.204.90.1"], "search": ["lxd"]}, "ansible_processor_vcpus": 8, "ansible_bios_version": "1801", "ansible_processor": ["GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz"], "ansible_date_time": {"weekday_number": "4", "iso8601_basic_short": "20170622T150703", "tz": "CEST", "weeknumber": "25", "hour": "15", "year": "2017", "minute": "07", "tz_offset": "+0200", "month": "06", "epoch": "1498136823", "iso8601_micro": "2017-06-22T13:07:03.214783Z", "weekday": "Thursday", "time": "15:07:03", "date": "2017-06-22", "iso8601": "2017-06-22T13:07:03Z", "day": "22", "iso8601_basic": "20170622T150703214733", "second": "03"}, "ansible_lo": {"features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "rx_all": "off [fixed]", "highdma": "on [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_tcp_mangleid_segmentation": "on", "tx_ipxip4_segmentation": "off [fixed]", "tx_checksumming": "on", "vlan_challenged": "on [fixed]", "loopback": "on [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on [fixed]", "rx_checksumming": "on [fixed]", "tx_tcp_segmentation": "on", "netns_local": "on [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_nocache_copy": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "hw_timestamp_filters": [], "mtu": 65536, "device": "lo", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 32055, "ansible_architecture": "x86_64", "ansible_real_user_id": 1000, "ansible_default_ipv4": {"macaddress": "00:16:3e:9a:5c:5e", "network": "10.204.90.0", "mtu": 1500, "broadcast": "10.204.90.255", "alias": "eth0", "netmask": "255.255.255.0", "address": "10.204.90.72", "interface": "eth0", "type": "ether", "gateway": "10.204.90.1"}, "ansible_swapfree_mb": 0, "ansible_default_ipv6": {}, "ansible_distribution_release": "xenial", "ansible_system_vendor": "System manufacturer", "ansible_os_family": "Debian", "ansible_cmdline": {"intel_idle.max_cstate": "1", "BOOT_IMAGE": "/vmlinuz-4.10.0-20-generic", "quiet": true, "splash": true, "vt.handoff": "7", "ro": true, "root": "/dev/mapper/mint--vg-root"}, "ansible_effective_user_id": 1000, "ansible_mounts": [{"block_used": 43078280, "uuid": "N/A", "size_total": 244960526336, "block_total": 59804816, "mount": "/", "block_available": 16726536, "size_available": 68511891456, "fstype": "ext4", "inode_total": 15204352, "options": "rw,relatime,errors=remount-ro,data=ordered,bind", "device": "/dev/mapper/mint--vg-root", "inode_used": 1805349, "block_size": 4096, "inode_available": 13399003}], "ansible_selinux": false, "ansible_product_version": "System Version", "ansible_apparmor": {"status": "enabled"}, "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "NA", "ansible_system": "Linux", "ansible_pkg_mgr": "apt", "ansible_memfree_mb": 31023, "ansible_devices": {"dm-2": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "904937472", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "431.51 GB"}, "loop6": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop4": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "dm-0": {"scheduler_mode": "", "rotational": "0", "vendor": null, "sectors": "486342656", "links": {"masters": ["dm-3"], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "512", "model": null, "partitions": {}, "holders": ["mint--vg-root"], "size": "231.91 GB"}, "sda": {"scheduler_mode": "cfq", "rotational": "0", "vendor": "ATA", "sectors": "488397168", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "SATA controller: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] (rev 31)", "sectorsize": "512", "removable": "0", "support_discard": "512", "model": "Samsung SSD 850", "partitions": {"sda2": {"sectorsize": 512, "uuid": null, "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sectors": "999424", "start": "1050624", "holders": [], "size": "488.00 MB"}, "sda3": {"sectorsize": 512, "uuid": null, "links": {"masters": ["dm-0"], "labels": [], "ids": [], "uuids": []}, "sectors": "486346752", "start": "2050048", "holders": ["sda3_crypt"], "size": "231.91 GB"}, "sda1": {"sectorsize": 512, "uuid": null, "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sectors": "1048576", "start": "2048", "holders": [], "size": "512.00 MB"}}, "holders": [], "size": "232.89 GB"}, "sdb": {"scheduler_mode": "cfq", "rotational": "1", "vendor": "ATA", "sectors": "1953525168", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "SATA controller: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] (rev 31)", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": "ST1000DM003-1SB1", "partitions": {"sdb1": {"sectorsize": 512, "uuid": null, "links": {"masters": ["dm-1", "dm-2"], "labels": [], "ids": [], "uuids": []}, "sectors": "1953521664", "start": "2048", "holders": ["backup-backup", "backup-big"], "size": "931.51 GB"}}, "holders": [], "size": "931.51 GB"}, "loop3": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop2": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop7": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "dm-3": {"scheduler_mode": "", "rotational": "0", "vendor": null, "sectors": "486334464", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "512", "model": null, "partitions": {}, "holders": [], "size": "231.90 GB"}, "loop5": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "dm-1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "1048576000", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "500.00 GB"}}, "ansible_user_uid": 1000, "ansible_memory_mb": {"real": {"total": 32055, "used": 1032, "free": 31023}, "swap": {"cached": 0, "total": 0, "free": 0, "used": 0}, "nocache": {"used": 909, "free": 31146}}, "ansible_distribution": "Ubuntu", "ansible_user_dir": "/home/devops", "ansible_env": {"LC_NUMERIC": "nl_NL.UTF-8", "LC_CTYPE": "en_US.UTF-8", "SSH_CLIENT": "10.204.90.1 46434 22", "LOGNAME": "devops", "USER": "devops", "HOME": "/home/devops", "LC_PAPER": "nl_NL.UTF-8", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games", "LANG": "C", "SHELL": "/bin/bash", "SHLVL": "1", "LC_MONETARY": "nl_NL.UTF-8", "LC_ADDRESS": "nl_NL.UTF-8", "LC_ALL": "C", "_": "/bin/sh", "LC_IDENTIFICATION": "nl_NL.UTF-8", "LC_MESSAGES": "C", "LC_COLLATE": "en_US.UTF-8", "LC_TELEPHONE": "nl_NL.UTF-8", "LC_MEASUREMENT": "nl_NL.UTF-8", "PWD": "/home/devops", "LC_NAME": "nl_NL.UTF-8", "MAIL": "/var/mail/devops", "LC_TIME": "en_US.UTF-8", "SSH_CONNECTION": "10.204.90.1 46434 10.204.90.72 22"}, "ansible_distribution_major_version": "16", "module_setup": true, "ansible_processor_count": 1, "ansible_hostname": "test-db1", "ansible_effective_group_id": 1000, "ansible_swaptotal_mb": 0, "ansible_lsb": {"release": "16.04", "major_release": "16", "codename": "xenial", "id": "Ubuntu", "description": "Ubuntu 16.04.2 LTS"}, "ansible_real_group_id": 1000, "ansible_bios_date": "05/10/2016", "ansible_all_ipv6_addresses": ["fe80::216:3eff:fe9a:5c5e"], "ansible_interfaces": ["lo", "eth0"], "ansible_uptime_seconds": 3049626, "ansible_user_shell": "/bin/bash", "ansible_machine_id": "9b3896a004fe4b4f8a6b05c4f86095ee", "ansible_kernel": "4.10.0-20-generic", "ansible_user_gecos": "DevOps User", "ansible_system_capabilities_enforced": "True", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 12, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 12, "final", 0]}, "ansible_processor_threads_per_core": 2, "ansible_fqdn": "test-db1", "ansible_user_gid": 1000, "ansible_eth0": {"macaddress": "00:16:3e:9a:5c:5e", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_tcp_mangleid_segmentation": "on", "tx_ipxip4_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "tx_ipxip6_segmentation": "on", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on", "tx_vlan_stag_hw_insert": "on", "rx_vlan_stag_hw_parse": "on", "tx_gso_partial": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "on", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "on", "tx_tcp6_segmentation": "on", "tx_udp_tnl_csum_segmentation": "on", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "tx_nocache_copy": "off", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "on", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "on"}, "type": "ether", "hw_timestamp_filters": [], "mtu": 1500, "device": "eth0", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "10.204.90.255", "netmask": "255.255.255.0", "network": "10.204.90.0", "address": "10.204.90.72"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::216:3eff:fe9a:5c5e"}], "active": true, "speed": 10000}, "ansible_nodename": "test-db1", "ansible_product_name": "System Product Name", "ansible_machine": "x86_64", "ansible_system_capabilities": [""], "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAJvwTGz897iXKZ/SjhNTe/qa8EOMaGSsRgZpaMKtpuo23LPoXDnjUFocMHmJKADQGnuBYm+TgbjuB8do4fLX/ljXec3LprJHfUdh93HLHof3xFC43nTIl9eNeVO4ka7jWnps621g0rd2Virq83h1osdIumbxcemlqn7ELQsOqe1LAAAAFQCIQtOfidX2CaQkijP1f+dzcRp29QAAAIAZR3OLuCo301a69OPcDtJOprxt9fTv3AmqBZflqPY7SewbuqmdG3ikQfphCB/zn3jgNQClm58vSHnLIQlPzdYZ8rtsAfkdUeRzuJhmyMxSO5tED0/dySK2aDCmyuVkN+D6IQrvgFGL98dPiUi5DYXQY1OxYGdg3a2iGPI0vJUnCQAAAIEAmQ9q2diAReW/NAacQy4YxWoTNhYAw82lnKPG1i0fnJTQrZgsLpasNIKq6qFNOmLRzO2uyFu/tmeOhQlQd+4Y9WX8jeyRJnElnAZE73WrRNyWrmaqPekWKHwUQlv233IT1WNebuABYp54MHbTQDUBWPz0qhcqxQ12BUq/LVcEQBQ=", "ansible_all_ipv4_addresses": ["10.204.90.72"], "ansible_python_version": "2.7.12"}}\n', '')
<10.204.90.113> (0, '\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["!ohai"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "changed": false, "ansible_facts": {"ansible_product_serial": "NA", "ansible_form_factor": "Desktop", "ansible_distribution_file_parsed": true, "ansible_fips": false, "ansible_service_mgr": "systemd", "ansible_user_id": "devops", "ansible_selinux_python_present": false, "ansible_userspace_bits": "64", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCX/4zGK4DU/OEfyTDNPPDBQsNvOskyHBjI4estQcFjv9RqZa/dnQjgeCIL77xCdPfwAXEEOQd62UGQF50ZX0VmfdxSnGNnd1mKBQgzAvbxKhHSqP1Fo+FA2k8+xz6pWadQsWHE26KMIedkda71eepk3QaV5PsfDlo6n0fBQm4cNvbeADsghY6KcG4mBmudKVFwoNvljd8hmNYbuvZ6jf2pKEWdc0rYSJcfSJ/vZ8I26y1O6LQkRXD1lyezRnb3kk6aVjXwZHNblfK0BwBTfjlE1nQmLP0mNKpjYfhkutE1kdTDDIn+S7a8EZq9QWZGg14DdJa7rUcB8NBuohuWWds9", "gather_subset": ["!ohai"], "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFVHoFwVwTL7oG4LVqtXkonFCyQEM7Tm0jMrfZXw8x9vCvsuN9WAy34Ug8pn9mFloDhh3xCLZEBvHQZEvinz/00=", "ansible_local": {}, "ansible_distribution_version": "16.04", "ansible_domain": "", "ansible_distribution_file_path": "/etc/os-release", "ansible_device_links": {"masters": {"sdb1": ["dm-1", "dm-2"], "sda3": ["dm-0"], "dm-0": ["dm-3"]}, "labels": {}, "ids": {}, "uuids": {}}, "ansible_virtualization_type": "lxc", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIHkHOrJpIKI7016lp4Hl/DDEJsJRtW832NyYrFy/w4JN", "ansible_processor_cores": 4, "ansible_virtualization_role": "guest", "ansible_distribution_file_variety": "Debian", "ansible_env": {"LC_NUMERIC": "nl_NL.UTF-8", "LC_CTYPE": "en_US.UTF-8", "SSH_CLIENT": "10.204.90.1 41956 22", "LOGNAME": "devops", "USER": "devops", "HOME": "/home/devops", "LC_PAPER": "nl_NL.UTF-8", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games", "LANG": "C", "SHELL": "/bin/bash", "SHLVL": "1", "LC_MONETARY": "nl_NL.UTF-8", "LC_ADDRESS": "nl_NL.UTF-8", "LC_ALL": "C", "_": "/bin/sh", "LC_IDENTIFICATION": "nl_NL.UTF-8", "LC_MESSAGES": "C", "LC_COLLATE": "en_US.UTF-8", "LC_TELEPHONE": "nl_NL.UTF-8", "LC_MEASUREMENT": "nl_NL.UTF-8", "PWD": "/home/devops", "LC_NAME": "nl_NL.UTF-8", "MAIL": "/var/mail/devops", "LC_TIME": "en_US.UTF-8", "SSH_CONNECTION": "10.204.90.1 41956 10.204.90.113 22"}, "ansible_processor_vcpus": 8, "ansible_bios_version": "1801", "ansible_processor": ["GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz", "GenuineIntel", "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz"], "ansible_date_time": {"weekday_number": "4", "iso8601_basic_short": "20170622T150703", "tz": "CEST", "weeknumber": "25", "hour": "15", "year": "2017", "minute": "07", "tz_offset": "+0200", "month": "06", "epoch": "1498136823", "iso8601_micro": "2017-06-22T13:07:03.219388Z", "weekday": "Thursday", "time": "15:07:03", "date": "2017-06-22", "iso8601": "2017-06-22T13:07:03Z", "day": "22", "iso8601_basic": "20170622T150703219341", "second": "03"}, "ansible_lo": {"features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "rx_all": "off [fixed]", "highdma": "on [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_tcp_mangleid_segmentation": "on", "tx_ipxip4_segmentation": "off [fixed]", "tx_checksumming": "on", "vlan_challenged": "on [fixed]", "loopback": "on [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on [fixed]", "rx_checksumming": "on [fixed]", "tx_tcp_segmentation": "on", "netns_local": "on [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_nocache_copy": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "hw_timestamp_filters": [], "mtu": 65536, "device": "lo", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 32055, "ansible_architecture": "x86_64", "ansible_real_user_id": 1000, "ansible_default_ipv4": {"macaddress": "00:16:3e:ed:12:35", "network": "10.204.90.0", "mtu": 1500, "broadcast": "10.204.90.255", "alias": "eth0", "netmask": "255.255.255.0", "address": "10.204.90.113", "interface": "eth0", "type": "ether", "gateway": "10.204.90.1"}, "ansible_swapfree_mb": 0, "ansible_default_ipv6": {}, "ansible_distribution_release": "xenial", "ansible_system_vendor": "System manufacturer", "ansible_os_family": "Debian", "ansible_cmdline": {"intel_idle.max_cstate": "1", "BOOT_IMAGE": "/vmlinuz-4.10.0-20-generic", "quiet": true, "splash": true, "vt.handoff": "7", "ro": true, "root": "/dev/mapper/mint--vg-root"}, "ansible_effective_user_id": 1000, "ansible_mounts": [{"block_used": 43078280, "uuid": "N/A", "size_total": 244960526336, "block_total": 59804816, "mount": "/", "block_available": 16726536, "size_available": 68511891456, "fstype": "ext4", "inode_total": 15204352, "options": "rw,relatime,errors=remount-ro,data=ordered,bind", "device": "/dev/mapper/mint--vg-root", "inode_used": 1805349, "block_size": 4096, "inode_available": 13399003}], "ansible_selinux": false, "ansible_product_version": "System Version", "ansible_apparmor": {"status": "enabled"}, "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "NA", "ansible_system": "Linux", "ansible_pkg_mgr": "apt", "ansible_memfree_mb": 31038, "ansible_devices": {"dm-2": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "904937472", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "431.51 GB"}, "loop6": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop4": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "dm-0": {"scheduler_mode": "", "rotational": "0", "vendor": null, "sectors": "486342656", "links": {"masters": ["dm-3"], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "512", "model": null, "partitions": {}, "holders": ["mint--vg-root"], "size": "231.91 GB"}, "sda": {"scheduler_mode": "cfq", "rotational": "0", "vendor": "ATA", "sectors": "488397168", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "SATA controller: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] (rev 31)", "sectorsize": "512", "removable": "0", "support_discard": "512", "model": "Samsung SSD 850", "partitions": {"sda2": {"sectorsize": 512, "uuid": null, "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sectors": "999424", "start": "1050624", "holders": [], "size": "488.00 MB"}, "sda3": {"sectorsize": 512, "uuid": null, "links": {"masters": ["dm-0"], "labels": [], "ids": [], "uuids": []}, "sectors": "486346752", "start": "2050048", "holders": ["sda3_crypt"], "size": "231.91 GB"}, "sda1": {"sectorsize": 512, "uuid": null, "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sectors": "1048576", "start": "2048", "holders": [], "size": "512.00 MB"}}, "holders": [], "size": "232.89 GB"}, "sdb": {"scheduler_mode": "cfq", "rotational": "1", "vendor": "ATA", "sectors": "1953525168", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "SATA controller: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] (rev 31)", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": "ST1000DM003-1SB1", "partitions": {"sdb1": {"sectorsize": 512, "uuid": null, "links": {"masters": ["dm-1", "dm-2"], "labels": [], "ids": [], "uuids": []}, "sectors": "1953521664", "start": "2048", "holders": ["backup-backup", "backup-big"], "size": "931.51 GB"}}, "holders": [], "size": "931.51 GB"}, "loop3": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop2": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "loop7": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "dm-3": {"scheduler_mode": "", "rotational": "0", "vendor": null, "sectors": "486334464", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "512", "model": null, "partitions": {}, "holders": [], "size": "231.90 GB"}, "loop5": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "0.00 Bytes"}, "dm-1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "1048576000", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "500.00 GB"}}, "ansible_user_uid": 1000, "ansible_memory_mb": {"real": {"total": 32055, "used": 1017, "free": 31038}, "swap": {"cached": 0, "total": 0, "free": 0, "used": 0}, "nocache": {"used": 794, "free": 31261}}, "ansible_distribution": "Ubuntu", "ansible_user_dir": "/home/devops", "ansible_dns": {"nameservers": ["10.204.90.1"], "search": ["lxd"]}, "ansible_distribution_major_version": "16", "module_setup": true, "ansible_processor_count": 1, "ansible_hostname": "test-db2", "ansible_effective_group_id": 1000, "ansible_swaptotal_mb": 0, "ansible_lsb": {"release": "16.04", "major_release": "16", "codename": "xenial", "id": "Ubuntu", "description": "Ubuntu 16.04.2 LTS"}, "ansible_real_group_id": 1000, "ansible_bios_date": "05/10/2016", "ansible_all_ipv6_addresses": ["fe80::216:3eff:feed:1235"], "ansible_interfaces": ["lo", "eth0"], "ansible_uptime_seconds": 276878, "ansible_user_shell": "/bin/bash", "ansible_machine_id": "f989af7281f24f36ace09fd88404d258", "ansible_kernel": "4.10.0-20-generic", "ansible_user_gecos": "DevOps User", "ansible_system_capabilities_enforced": "True", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 12, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 12, "final", 0]}, "ansible_processor_threads_per_core": 2, "ansible_fqdn": "test-db2", "ansible_user_gid": 1000, "ansible_eth0": {"macaddress": "00:16:3e:ed:12:35", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_tcp_mangleid_segmentation": "on", "tx_ipxip4_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "tx_ipxip6_segmentation": "on", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on", "tx_vlan_stag_hw_insert": "on", "rx_vlan_stag_hw_parse": "on", "tx_gso_partial": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "on", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "on", "tx_tcp6_segmentation": "on", "tx_udp_tnl_csum_segmentation": "on", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "tx_nocache_copy": "off", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "on", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "on"}, "type": "ether", "hw_timestamp_filters": [], "mtu": 1500, "device": "eth0", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "10.204.90.255", "netmask": "255.255.255.0", "network": "10.204.90.0", "address": "10.204.90.113"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::216:3eff:feed:1235"}], "active": true, "speed": 10000}, "ansible_nodename": "test-db2", "ansible_product_name": "System Product Name", "ansible_machine": "x86_64", "ansible_system_capabilities": [""], "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAPEO96eyydZiipZNChstYI7lInkQiASmqBUP6g0rr6sg22scSLo0hHg0yprpBBvoC15HX01HBecqE/U//57GuAr1rBXJUvYVINrKXaD3ifcCkAGIx1CpW0H8lwNTXNP3Wc2dzaipkXgasrWxczEE76CgC1wTA/U97w5Kb8N9ax89AAAAFQCe7XFBRUA5kV6SJdTnMPcDLgavQQAAAIABhmqmXaq1785/ZRWeePE5wk3n+jGQrIK16OmONUDxTt0rBrUzMPCq2Z6CwK5/u75NG/KxzZTltn8lYaIqpR/Krf/UzAJWiakxhj61KDpg5XcNRI0uEY1lhu33YCR/R+IzFG+b5kRs5Wtx7iE30w69gd9noSMe1lvGhWZf0nJ3HwAAAIEAm3YHt9D9IWT2dzgox0wozQhJ6q1mJ3JIXCtiDDm1DAj1+Ez+rsArx/O6YLfm4jD/CHEx5yVKl/VpzMmShrMsCEICBuhfQh1vIBQxCZgLTlp7SFzhE39ewoOQ9TFsuWMQ16VlvZ8ZRWckpM+uHPtY5TcLZcoCs/Anp8FIAxd5BaQ=", "ansible_all_ipv4_addresses": ["10.204.90.113"], "ansible_python_version": "2.7.12"}}\n', '')
ok: [test-db1.dev]
ok: [test-db2.dev]
META: ran handlers

TASK [command] *******************************************************************************************************************************************************************************************************************************
task path: /home/muller/git/devops/ansible/dev/test.yml:8
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/basic.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/six/__init__.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/_text.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/pycompat24.py
Using module_utils file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/module_utils/six/_six.py
Using module file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/modules/commands/command.py
<10.204.90.72> ESTABLISH SSH CONNECTION FOR USER: devops
<10.204.90.72> SSH: EXEC ssh -o PasswordAuthentication=no -o ControlMaster=auto -o ControlPersist=600s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=devops -o ConnectTimeout=10 -o ControlPath=/home/muller/.ansible/cp/27127c052e 10.204.90.72 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.204.90.72> (0, '\n{"changed": true, "end": "2017-06-22 15:07:03.391104", "stdout": "test-db1", "cmd": ["hostname"], "start": "2017-06-22 15:07:03.384551", "delta": "0:00:00.006553", "stderr": "", "rc": 0, "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": false, "_raw_params": "hostname", "removes": null, "creates": null, "chdir": null}}, "warnings": []}\n', '')
changed: [test-db1.dev] => {
"changed": true,
"cmd": [
"hostname"
],
"delta": "0:00:00.006553",
"end": "2017-06-22 15:07:03.391104",
"failed": false,
"invocation": {
"module_args": {
"_raw_params": "hostname",
"_uses_shell": false,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"warn": true
}
},
"rc": 0,
"start": "2017-06-22 15:07:03.384551",
"stderr": "",
"stderr_lines": [],
"stdout": "test-db1",
"stdout_lines": [
"test-db1"
]
}
cmd: hostname
stdout:
test-db1

TASK [command] *******************************************************************************************************************************************************************************************************************************
task path: /home/muller/git/devops/ansible/dev/test.yml:11
Using module file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/modules/commands/command.py
<10.204.90.72> ESTABLISH SSH CONNECTION FOR USER: devops
<10.204.90.72> SSH: EXEC ssh -o PasswordAuthentication=no -o ControlMaster=auto -o ControlPersist=600s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=devops -o ConnectTimeout=10 -o ControlPath=/home/muller/.ansible/cp/27127c052e 10.204.90.72 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.204.90.72> (0, '\n{"changed": true, "end": "2017-06-22 15:07:03.485291", "stdout": "test-db1", "cmd": ["hostname"], "start": "2017-06-22 15:07:03.478684", "delta": "0:00:00.006607", "stderr": "", "rc": 0, "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": false, "_raw_params": "hostname", "removes": null, "creates": null, "chdir": null}}, "warnings": []}\n', '')
changed: [test-db1.dev -> 10.204.90.72] => {
"changed": true,
"cmd": [
"hostname"
],
"delta": "0:00:00.006607",
"end": "2017-06-22 15:07:03.485291",
"failed": false,
"invocation": {
"module_args": {
"_raw_params": "hostname",
"_uses_shell": false,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"warn": true
}
},
"rc": 0,
"start": "2017-06-22 15:07:03.478684",
"stderr": "",
"stderr_lines": [],
"stdout": "test-db1",
"stdout_lines": [
"test-db1"
]
}
cmd: hostname
stdout:
test-db1

TASK [command] *******************************************************************************************************************************************************************************************************************************
task path: /home/muller/git/devops/ansible/dev/test.yml:15
Using module file /home/muller/ansible-devel/local/lib/python2.7/site-packages/ansible/modules/commands/command.py
<test-db1.dev> ESTABLISH SSH CONNECTION FOR USER: None
<test-db1.dev> SSH: EXEC ssh -o PasswordAuthentication=no -o ControlMaster=auto -o ControlPersist=600s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/muller/.ansible/cp/7aed99ec70 test-db1.dev '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
fatal: [test-db1.dev]: UNREACHABLE! => {
"changed": false,
"msg": "SSH Error: data could not be sent to remote host \"test-db1.dev\". Make sure this host can be reached over ssh",
"unreachable": true
}
msg:
SSH Error: data could not be sent to remote host "test-db1.dev". Make sure this host can be reached over ssh

NO MORE HOSTS LEFT ***************************************************************************************************************************************************************************************************************************
to retry, use: --limit @/home/muller/git/devops/ansible/dev/test.retry

PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
test-db1.dev : ok=3 changed=2 unreachable=1 failed=0
test-db2.dev : ok=1 changed=0 unreachable=0 failed=0

TOP 10: Worst performing tasks *************************************************

0.45s Gathering Facts
0.17s command
0.09s command
0.08s command

********************************************************************************
Playbook finished: Thu Jun 22 15:07:03 2017, 4 total tasks. 0:00:00 elapsed.