Procedure
Standard proceduce output when initializing vagrant sandbox
The command that is executed when the sandbox is pulled up locally.
make up # pull up vagrant nodes
make ssh # config vm ssh access
sudo make dns # write static pigsty DNS records (sudo required)
make init # initialize pigsty
[01-05 11:30:05 CST] 4064 vonng@vonng-mac:/tmp/pigsty master [+!]
$ make up
cd vagrant && vagrant up
Bringing machine 'meta' up with 'virtualbox' provider...
Bringing machine 'node-1' up with 'virtualbox' provider...
Bringing machine 'node-2' up with 'virtualbox' provider...
Bringing machine 'node-3' up with 'virtualbox' provider...
==> meta: Cloning VM...
==> meta: Matching MAC address for NAT networking...
==> meta: Setting the name of the VM: vagrant_meta_1609817410777_92884
==> meta: Clearing any previously set network interfaces...
==> meta: Preparing network interfaces based on configuration...
meta: Adapter 1: nat
meta: Adapter 2: hostonly
==> meta: Forwarding ports...
meta: 22 (guest) => 2222 (host) (adapter 1)
==> meta: Running 'pre-boot' VM customizations...
==> meta: Booting VM...
==> meta: Waiting for machine to boot. This may take a few minutes...
meta: SSH address: 127.0.0.1:2222
meta: SSH username: vagrant
meta: SSH auth method: private key
==> meta: Machine booted and ready!
==> meta: Checking for guest additions in VM...
meta: No guest additions were detected on the base box for this VM! Guest
meta: additions are required for forwarded ports, shared folders, host only
meta: networking, and more. If SSH fails on this machine, please install
meta: the guest additions and repackage the box to continue.
meta:
meta: This is not an error message; everything may continue to work properly,
meta: in which case you may ignore this message.
==> meta: Setting hostname...
==> meta: Configuring and enabling network interfaces...
==> meta: Rsyncing folder: /private/tmp/pigsty/vagrant/ => /vagrant
==> meta: Running provisioner: shell...
meta: Running: /var/folders/_5/_0mbf4292pl9y4xgy0kn2r1h0000gn/T/vagrant-shell20210105-17045-1v75v51.sh
meta: [INFO] write ssh config to /home/vagrant/.ssh
==> node-1: Cloning VM...
==> node-1: Matching MAC address for NAT networking...
==> node-1: Setting the name of the VM: vagrant_node-1_1609817436268_16944
==> node-1: Fixed port collision for 22 => 2222. Now on port 2200.
==> node-1: Clearing any previously set network interfaces...
==> node-1: Preparing network interfaces based on configuration...
node-1: Adapter 1: nat
node-1: Adapter 2: hostonly
==> node-1: Forwarding ports...
node-1: 22 (guest) => 2200 (host) (adapter 1)
==> node-1: Running 'pre-boot' VM customizations...
==> node-1: Booting VM...
==> node-1: Waiting for machine to boot. This may take a few minutes...
node-1: SSH address: 127.0.0.1:2200
node-1: SSH username: vagrant
node-1: SSH auth method: private key
==> node-1: Machine booted and ready!
==> node-1: Checking for guest additions in VM...
node-1: No guest additions were detected on the base box for this VM! Guest
node-1: additions are required for forwarded ports, shared folders, host only
node-1: networking, and more. If SSH fails on this machine, please install
node-1: the guest additions and repackage the box to continue.
node-1:
node-1: This is not an error message; everything may continue to work properly,
node-1: in which case you may ignore this message.
==> node-1: Setting hostname...
==> node-1: Configuring and enabling network interfaces...
==> node-1: Rsyncing folder: /private/tmp/pigsty/vagrant/ => /vagrant
==> node-1: Running provisioner: shell...
node-1: Running: /var/folders/_5/_0mbf4292pl9y4xgy0kn2r1h0000gn/T/vagrant-shell20210105-17045-1q6dbk1.sh
node-1: [INFO] write ssh config to /home/vagrant/.ssh
==> node-2: Cloning VM...
==> node-2: Matching MAC address for NAT networking...
==> node-2: Setting the name of the VM: vagrant_node-2_1609817459120_54635
==> node-2: Fixed port collision for 22 => 2222. Now on port 2201.
==> node-2: Clearing any previously set network interfaces...
==> node-2: Preparing network interfaces based on configuration...
node-2: Adapter 1: nat
node-2: Adapter 2: hostonly
==> node-2: Forwarding ports...
node-2: 22 (guest) => 2201 (host) (adapter 1)
==> node-2: Running 'pre-boot' VM customizations...
==> node-2: Booting VM...
==> node-2: Waiting for machine to boot. This may take a few minutes...
node-2: SSH address: 127.0.0.1:2201
node-2: SSH username: vagrant
node-2: SSH auth method: private key
==> node-2: Machine booted and ready!
==> node-2: Checking for guest additions in VM...
node-2: No guest additions were detected on the base box for this VM! Guest
node-2: additions are required for forwarded ports, shared folders, host only
node-2: networking, and more. If SSH fails on this machine, please install
node-2: the guest additions and repackage the box to continue.
node-2:
node-2: This is not an error message; everything may continue to work properly,
node-2: in which case you may ignore this message.
==> node-2: Setting hostname...
==> node-2: Configuring and enabling network interfaces...
==> node-2: Rsyncing folder: /private/tmp/pigsty/vagrant/ => /vagrant
==> node-2: Running provisioner: shell...
node-2: Running: /var/folders/_5/_0mbf4292pl9y4xgy0kn2r1h0000gn/T/vagrant-shell20210105-17045-1q61qy1.sh
node-2: [INFO] write ssh config to /home/vagrant/.ssh
==> node-3: Cloning VM...
==> node-3: Matching MAC address for NAT networking...
==> node-3: Setting the name of the VM: vagrant_node-3_1609817482803_49852
==> node-3: Fixed port collision for 22 => 2222. Now on port 2202.
==> node-3: Clearing any previously set network interfaces...
==> node-3: Preparing network interfaces based on configuration...
node-3: Adapter 1: nat
node-3: Adapter 2: hostonly
==> node-3: Forwarding ports...
node-3: 22 (guest) => 2202 (host) (adapter 1)
==> node-3: Running 'pre-boot' VM customizations...
==> node-3: Booting VM...
==> node-3: Waiting for machine to boot. This may take a few minutes...
node-3: SSH address: 127.0.0.1:2202
node-3: SSH username: vagrant
node-3: SSH auth method: private key
==> node-3: Machine booted and ready!
==> node-3: Checking for guest additions in VM...
node-3: No guest additions were detected on the base box for this VM! Guest
node-3: additions are required for forwarded ports, shared folders, host only
node-3: networking, and more. If SSH fails on this machine, please install
node-3: the guest additions and repackage the box to continue.
node-3:
node-3: This is not an error message; everything may continue to work properly,
node-3: in which case you may ignore this message.
==> node-3: Setting hostname...
==> node-3: Configuring and enabling network interfaces...
==> node-3: Rsyncing folder: /private/tmp/pigsty/vagrant/ => /vagrant
==> node-3: Running provisioner: shell...
node-3: Running: /var/folders/_5/_0mbf4292pl9y4xgy0kn2r1h0000gn/T/vagrant-shell20210105-17045-1rj8hxd.sh
node-3: [INFO] write ssh config to /home/vagrant/.ssh
[01-05 11:31:45 CST] 4065 vonng@vonng-mac:/tmp/pigsty master [+!]
$ make ssh
cd vagrant && vagrant ssh-config > ~/.ssh/pigsty_config 2>/dev/null; true
if ! grep --quiet "pigsty_config" ~/.ssh/config ; then (echo 'Include ~/.ssh/pigsty_config' && cat ~/.ssh/config) > ~/.ssh/config.tmp; mv ~/.ssh/config.tmp ~/.ssh/config && chmod 0600 ~/.ssh/config; fi
if ! grep --quiet "StrictHostKeyChecking=no" ~/.ssh/config ; then (echo 'StrictHostKeyChecking=no' && cat ~/.ssh/config) > ~/.ssh/config.tmp; mv ~/.ssh/config.tmp ~/.ssh/config && chmod 0600 ~/.ssh/config; fi
[01-05 11:33:44 CST] 4066 vonng@vonng-mac:/tmp/pigsty master [+!]
$ sudo make dns
Password:
if ! grep --quiet "pigsty dns records" /etc/hosts ; then cat files/dns >> /etc/hosts; fi
[01-05 11:35:26 CST] 4067 vonng@vonng-mac:/tmp/pigsty master [+!]
$ make init
./infra.yml # provision meta node infrastructure
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [Init local repo] ************************************************************************************************************************************************************
TASK [Create local repo directory] ************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Backup & remove existing repos] *********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Add required upstream repos] ************************************************************************************************************************************************
[WARNING]: Using a variable for a task's 'args' is unsafe in some situations (see https://docs.ansible.com/ansible/devel/reference_appendices/faq.html#argsplat-unsafe)
changed: [10.10.10.10] => (item={'name': 'base', 'description': 'CentOS-$releasever - Base - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/os/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
changed: [10.10.10.10] => (item={'name': 'updates', 'description': 'CentOS-$releasever - Updates - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
changed: [10.10.10.10] => (item={'name': 'extras', 'description': 'CentOS-$releasever - Extras - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
changed: [10.10.10.10] => (item={'name': 'epel', 'description': 'CentOS $releasever - EPEL - Aliyun Mirror', 'baseurl': 'http://mirrors.aliyun.com/epel/$releasever/$basearch', 'gpgcheck': False, 'failovermethod': 'priority'})
changed: [10.10.10.10] => (item={'name': 'grafana', 'description': 'Grafana - TsingHua Mirror', 'gpgcheck': False, 'baseurl': 'https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm'})
changed: [10.10.10.10] => (item={'name': 'prometheus', 'description': 'Prometheus and exporters', 'gpgcheck': False, 'baseurl': 'https://packagecloud.io/prometheus-rpm/release/el/$releasever/$basearch'})
changed: [10.10.10.10] => (item={'name': 'pgdg-common', 'description': 'PostgreSQL common RPMs for RHEL/CentOS $releasever - $basearch', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-$releasever-$basearch'})
changed: [10.10.10.10] => (item={'name': 'pgdg13', 'description': 'PostgreSQL 13 for RHEL/CentOS $releasever - $basearch - Updates testing', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch'})
changed: [10.10.10.10] => (item={'name': 'centos-sclo', 'description': 'CentOS-$releasever - SCLo', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-sclo'})
changed: [10.10.10.10] => (item={'name': 'centos-sclo-rh', 'description': 'CentOS-$releasever - SCLo rh', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh'})
changed: [10.10.10.10] => (item={'name': 'nginx', 'description': 'Nginx Official Yum Repo', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'http://nginx.org/packages/centos/$releasever/$basearch/'})
changed: [10.10.10.10] => (item={'name': 'haproxy', 'description': 'Copr repo for haproxy', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/roidelapluie/haproxy/epel-$releasever-$basearch/'})
changed: [10.10.10.10] => (item={'name': 'harbottle', 'description': 'Copr repo for main owned by harbottle', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/harbottle/main/epel-$releasever-$basearch/'})
TASK [Check repo pkgs cache exists] ***********************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Set fact whether repo_exists] ***********************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Move upstream repo to backup] ***********************************************************************************************************************************************
skipping: [10.10.10.10]
TASK [Add local file system repos] ************************************************************************************************************************************************
skipping: [10.10.10.10]
TASK [repo : Remake yum cache if not exists] **************************************************************************************************************************************
skipping: [10.10.10.10]
TASK [Install repo bootstrap packages] ********************************************************************************************************************************************
changed: [10.10.10.10] => (item=['yum-utils', 'createrepo', 'ansible', 'nginx', 'wget'])
TASK [Render repo nginx server files] *********************************************************************************************************************************************
changed: [10.10.10.10] => (item={'src': 'index.html.j2', 'dest': '/www/index.html'})
changed: [10.10.10.10] => (item={'src': 'default.conf.j2', 'dest': '/etc/nginx/conf.d/default.conf'})
changed: [10.10.10.10] => (item={'src': 'local.repo.j2', 'dest': '/www/pigsty.repo'})
changed: [10.10.10.10] => (item={'src': 'nginx.conf.j2', 'dest': '/etc/nginx/nginx.conf'})
TASK [Disable selinux for repo server] ********************************************************************************************************************************************
[WARNING]: SELinux state temporarily changed from 'enforcing' to 'permissive'. State change will take effect next reboot.
changed: [10.10.10.10]
TASK [Launch repo nginx server] ***************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Waits repo server online] ***************************************************************************************************************************************************
ok: [10.10.10.10]
TASK [repo : Download web url packages] *******************************************************************************************************************************************
changed: [10.10.10.10] => (item=https://github.com/Vonng/pg_exporter/releases/download/v0.3.1/pg_exporter-0.3.1-1.el7.x86_64.rpm)
changed: [10.10.10.10] => (item=https://github.com/cybertec-postgresql/vip-manager/releases/download/v0.6/vip-manager_0.6-1_amd64.rpm)
changed: [10.10.10.10] => (item=http://guichaz.free.fr/polysh/files/polysh-0.4-1.noarch.rpm)
TASK [Download repo packages] *****************************************************************************************************************************************************
changed: [10.10.10.10] => (item=epel-release nginx wget yum-utils yum createrepo)
changed: [10.10.10.10] => (item=ntp chrony uuid lz4 nc pv jq vim-enhanced make patch bash lsof wget unzip git tuned)
changed: [10.10.10.10] => (item=readline zlib openssl libyaml libxml2 libxslt perl-ExtUtils-Embed ca-certificates)
changed: [10.10.10.10] => (item=numactl grubby sysstat dstat iotop bind-utils net-tools tcpdump socat ipvsadm telnet)
changed: [10.10.10.10] => (item=grafana prometheus2 pushgateway alertmanager)
changed: [10.10.10.10] => (item=node_exporter postgres_exporter nginx_exporter blackbox_exporter)
changed: [10.10.10.10] => (item=consul consul_exporter consul-template etcd)
changed: [10.10.10.10] => (item=ansible python python-pip python-psycopg2)
changed: [10.10.10.10] => (item=python3 python3-psycopg2 python36-requests python3-etcd python3-consul)
changed: [10.10.10.10] => (item=python36-urllib3 python36-idna python36-pyOpenSSL python36-cryptography)
changed: [10.10.10.10] => (item=haproxy keepalived dnsmasq)
changed: [10.10.10.10] => (item=patroni patroni-consul patroni-etcd pgbouncer pg_cli pgbadger pg_activity)
changed: [10.10.10.10] => (item=pgcenter boxinfo check_postgres emaj pgbconsole pg_bloat_check pgquarrel)
changed: [10.10.10.10] => (item=barman barman-cli pgloader pgFormatter pitrery pspg pgxnclient PyGreSQL pgadmin4 tail_n_mail)
changed: [10.10.10.10] => (item=postgresql13* postgis31* citus_13 pgrouting_13)
changed: [10.10.10.10] => (item=pg_repack13 pg_squeeze13)
changed: [10.10.10.10] => (item=pg_qualstats13 pg_stat_kcache13 system_stats_13 bgw_replstatus13)
changed: [10.10.10.10] => (item=plr13 plsh13 plpgsql_check_13 plproxy13 plr13 plsh13 plpgsql_check_13 pldebugger13)
changed: [10.10.10.10] => (item=hdfs_fdw_13 mongo_fdw13 mysql_fdw_13 ogr_fdw13 redis_fdw_13 pgbouncer_fdw13)
changed: [10.10.10.10] => (item=wal2json13 count_distinct13 ddlx_13 geoip13 orafce13)
changed: [10.10.10.10] => (item=rum_13 hypopg_13 ip4r13 jsquery_13 logerrors_13 periods_13 pg_auto_failover_13 pg_catcheck13)
changed: [10.10.10.10] => (item=pg_fkpart13 pg_jobmon13 pg_partman13 pg_prioritize_13 pg_track_settings13 pgaudit15_13)
changed: [10.10.10.10] => (item=pgcryptokey13 pgexportdoc13 pgimportdoc13 pgmemcache-13 pgmp13 pgq-13)
changed: [10.10.10.10] => (item=pguint13 pguri13 prefix13 safeupdate_13 semver13 table_version13 tdigest13)
[WARNING]: Consider using the yum module rather than running 'yum'. If you need to use command because yum is insufficient you can add 'warn: false' to this command task or set
'command_warnings=False' in ansible.cfg to get rid of this message.
TASK [Download repo pkg deps] *****************************************************************************************************************************************************
changed: [10.10.10.10] => (item=epel-release nginx wget yum-utils yum createrepo)
changed: [10.10.10.10] => (item=ntp chrony uuid lz4 nc pv jq vim-enhanced make patch bash lsof wget unzip git tuned)
changed: [10.10.10.10] => (item=readline zlib openssl libyaml libxml2 libxslt perl-ExtUtils-Embed ca-certificates)
changed: [10.10.10.10] => (item=numactl grubby sysstat dstat iotop bind-utils net-tools tcpdump socat ipvsadm telnet)
changed: [10.10.10.10] => (item=grafana prometheus2 pushgateway alertmanager)
changed: [10.10.10.10] => (item=node_exporter postgres_exporter nginx_exporter blackbox_exporter)
changed: [10.10.10.10] => (item=consul consul_exporter consul-template etcd)
changed: [10.10.10.10] => (item=ansible python python-pip python-psycopg2)
changed: [10.10.10.10] => (item=python3 python3-psycopg2 python36-requests python3-etcd python3-consul)
changed: [10.10.10.10] => (item=python36-urllib3 python36-idna python36-pyOpenSSL python36-cryptography)
changed: [10.10.10.10] => (item=haproxy keepalived dnsmasq)
changed: [10.10.10.10] => (item=patroni patroni-consul patroni-etcd pgbouncer pg_cli pgbadger pg_activity)
changed: [10.10.10.10] => (item=pgcenter boxinfo check_postgres emaj pgbconsole pg_bloat_check pgquarrel)
changed: [10.10.10.10] => (item=barman barman-cli pgloader pgFormatter pitrery pspg pgxnclient PyGreSQL pgadmin4 tail_n_mail)
changed: [10.10.10.10] => (item=postgresql13* postgis31* citus_13 pgrouting_13)
changed: [10.10.10.10] => (item=pg_repack13 pg_squeeze13)
changed: [10.10.10.10] => (item=pg_qualstats13 pg_stat_kcache13 system_stats_13 bgw_replstatus13)
changed: [10.10.10.10] => (item=plr13 plsh13 plpgsql_check_13 plproxy13 plr13 plsh13 plpgsql_check_13 pldebugger13)
changed: [10.10.10.10] => (item=hdfs_fdw_13 mongo_fdw13 mysql_fdw_13 ogr_fdw13 redis_fdw_13 pgbouncer_fdw13)
changed: [10.10.10.10] => (item=wal2json13 count_distinct13 ddlx_13 geoip13 orafce13)
changed: [10.10.10.10] => (item=rum_13 hypopg_13 ip4r13 jsquery_13 logerrors_13 periods_13 pg_auto_failover_13 pg_catcheck13)
changed: [10.10.10.10] => (item=pg_fkpart13 pg_jobmon13 pg_partman13 pg_prioritize_13 pg_track_settings13 pgaudit15_13)
changed: [10.10.10.10] => (item=pgcryptokey13 pgexportdoc13 pgimportdoc13 pgmemcache-13 pgmp13 pgq-13)
changed: [10.10.10.10] => (item=pguint13 pguri13 prefix13 safeupdate_13 semver13 table_version13 tdigest13)
TASK [Create local repo index] ****************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [repo : Copy bootstrap scripts] **********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Mark repo cache as valid] ***************************************************************************************************************************************************
changed: [10.10.10.10]
PLAY [Provision Node] *************************************************************************************************************************************************************
TASK [Update node hostname] *******************************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [node : Add new hostname to /etc/hosts] **************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [node : Write static dns records] ********************************************************************************************************************************************
changed: [10.10.10.10] => (item=10.10.10.10 yum.pigsty)
changed: [10.10.10.11] => (item=10.10.10.10 yum.pigsty)
changed: [10.10.10.12] => (item=10.10.10.10 yum.pigsty)
changed: [10.10.10.13] => (item=10.10.10.10 yum.pigsty)
TASK [node : Get old nameservers] *************************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.13]
TASK [node : Truncate resolv file] ************************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.10]
TASK [node : Write resolv options] ************************************************************************************************************************************************
changed: [10.10.10.11] => (item=options single-request-reopen timeout:1 rotate)
changed: [10.10.10.12] => (item=options single-request-reopen timeout:1 rotate)
changed: [10.10.10.10] => (item=options single-request-reopen timeout:1 rotate)
changed: [10.10.10.13] => (item=options single-request-reopen timeout:1 rotate)
changed: [10.10.10.11] => (item=domain service.consul)
changed: [10.10.10.12] => (item=domain service.consul)
changed: [10.10.10.13] => (item=domain service.consul)
changed: [10.10.10.10] => (item=domain service.consul)
TASK [node : Add new nameservers] *************************************************************************************************************************************************
changed: [10.10.10.11] => (item=10.10.10.10)
changed: [10.10.10.12] => (item=10.10.10.10)
changed: [10.10.10.10] => (item=10.10.10.10)
changed: [10.10.10.13] => (item=10.10.10.10)
TASK [node : Append old nameservers] **********************************************************************************************************************************************
changed: [10.10.10.11] => (item=10.0.2.3)
changed: [10.10.10.12] => (item=10.0.2.3)
changed: [10.10.10.13] => (item=10.0.2.3)
changed: [10.10.10.10] => (item=10.0.2.3)
TASK [node : Node configure disable firewall] *************************************************************************************************************************************
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.10]
ok: [10.10.10.13]
TASK [node : Node disable selinux by default] *************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
[WARNING]: SELinux state change will take effect next reboot
ok: [10.10.10.10]
changed: [10.10.10.13]
TASK [node : Backup existing repos] ***********************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.13]
TASK [node : Install upstream repo] ***********************************************************************************************************************************************
skipping: [10.10.10.10] => (item={'name': 'base', 'description': 'CentOS-$releasever - Base - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/os/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.10] => (item={'name': 'updates', 'description': 'CentOS-$releasever - Updates - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.11] => (item={'name': 'base', 'description': 'CentOS-$releasever - Base - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/os/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.10] => (item={'name': 'extras', 'description': 'CentOS-$releasever - Extras - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.11] => (item={'name': 'updates', 'description': 'CentOS-$releasever - Updates - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.10] => (item={'name': 'epel', 'description': 'CentOS $releasever - EPEL - Aliyun Mirror', 'baseurl': 'http://mirrors.aliyun.com/epel/$releasever/$basearch', 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.12] => (item={'name': 'base', 'description': 'CentOS-$releasever - Base - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/os/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.11] => (item={'name': 'extras', 'description': 'CentOS-$releasever - Extras - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.10] => (item={'name': 'grafana', 'description': 'Grafana - TsingHua Mirror', 'gpgcheck': False, 'baseurl': 'https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm'})
skipping: [10.10.10.12] => (item={'name': 'updates', 'description': 'CentOS-$releasever - Updates - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.11] => (item={'name': 'epel', 'description': 'CentOS $releasever - EPEL - Aliyun Mirror', 'baseurl': 'http://mirrors.aliyun.com/epel/$releasever/$basearch', 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.10] => (item={'name': 'prometheus', 'description': 'Prometheus and exporters', 'gpgcheck': False, 'baseurl': 'https://packagecloud.io/prometheus-rpm/release/el/$releasever/$basearch'})
skipping: [10.10.10.13] => (item={'name': 'base', 'description': 'CentOS-$releasever - Base - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/os/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.12] => (item={'name': 'extras', 'description': 'CentOS-$releasever - Extras - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.11] => (item={'name': 'grafana', 'description': 'Grafana - TsingHua Mirror', 'gpgcheck': False, 'baseurl': 'https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm'})
skipping: [10.10.10.10] => (item={'name': 'pgdg-common', 'description': 'PostgreSQL common RPMs for RHEL/CentOS $releasever - $basearch', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-$releasever-$basearch'})
skipping: [10.10.10.12] => (item={'name': 'epel', 'description': 'CentOS $releasever - EPEL - Aliyun Mirror', 'baseurl': 'http://mirrors.aliyun.com/epel/$releasever/$basearch', 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.11] => (item={'name': 'prometheus', 'description': 'Prometheus and exporters', 'gpgcheck': False, 'baseurl': 'https://packagecloud.io/prometheus-rpm/release/el/$releasever/$basearch'})
skipping: [10.10.10.13] => (item={'name': 'updates', 'description': 'CentOS-$releasever - Updates - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.10] => (item={'name': 'pgdg13', 'description': 'PostgreSQL 13 for RHEL/CentOS $releasever - $basearch - Updates testing', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch'})
skipping: [10.10.10.13] => (item={'name': 'extras', 'description': 'CentOS-$releasever - Extras - Aliyun Mirror', 'baseurl': ['http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/', 'http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/', 'http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/'], 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.12] => (item={'name': 'grafana', 'description': 'Grafana - TsingHua Mirror', 'gpgcheck': False, 'baseurl': 'https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm'})
skipping: [10.10.10.11] => (item={'name': 'pgdg-common', 'description': 'PostgreSQL common RPMs for RHEL/CentOS $releasever - $basearch', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-$releasever-$basearch'})
skipping: [10.10.10.10] => (item={'name': 'centos-sclo', 'description': 'CentOS-$releasever - SCLo', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-sclo'})
skipping: [10.10.10.13] => (item={'name': 'epel', 'description': 'CentOS $releasever - EPEL - Aliyun Mirror', 'baseurl': 'http://mirrors.aliyun.com/epel/$releasever/$basearch', 'gpgcheck': False, 'failovermethod': 'priority'})
skipping: [10.10.10.12] => (item={'name': 'prometheus', 'description': 'Prometheus and exporters', 'gpgcheck': False, 'baseurl': 'https://packagecloud.io/prometheus-rpm/release/el/$releasever/$basearch'})
skipping: [10.10.10.10] => (item={'name': 'centos-sclo-rh', 'description': 'CentOS-$releasever - SCLo rh', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh'})
skipping: [10.10.10.11] => (item={'name': 'pgdg13', 'description': 'PostgreSQL 13 for RHEL/CentOS $releasever - $basearch - Updates testing', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch'})
skipping: [10.10.10.13] => (item={'name': 'grafana', 'description': 'Grafana - TsingHua Mirror', 'gpgcheck': False, 'baseurl': 'https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm'})
skipping: [10.10.10.12] => (item={'name': 'pgdg-common', 'description': 'PostgreSQL common RPMs for RHEL/CentOS $releasever - $basearch', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-$releasever-$basearch'})
skipping: [10.10.10.11] => (item={'name': 'centos-sclo', 'description': 'CentOS-$releasever - SCLo', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-sclo'})
skipping: [10.10.10.10] => (item={'name': 'nginx', 'description': 'Nginx Official Yum Repo', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'http://nginx.org/packages/centos/$releasever/$basearch/'})
skipping: [10.10.10.13] => (item={'name': 'prometheus', 'description': 'Prometheus and exporters', 'gpgcheck': False, 'baseurl': 'https://packagecloud.io/prometheus-rpm/release/el/$releasever/$basearch'})
skipping: [10.10.10.12] => (item={'name': 'pgdg13', 'description': 'PostgreSQL 13 for RHEL/CentOS $releasever - $basearch - Updates testing', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch'})
skipping: [10.10.10.11] => (item={'name': 'centos-sclo-rh', 'description': 'CentOS-$releasever - SCLo rh', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh'})
skipping: [10.10.10.10] => (item={'name': 'haproxy', 'description': 'Copr repo for haproxy', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/roidelapluie/haproxy/epel-$releasever-$basearch/'})
skipping: [10.10.10.13] => (item={'name': 'pgdg-common', 'description': 'PostgreSQL common RPMs for RHEL/CentOS $releasever - $basearch', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-$releasever-$basearch'})
skipping: [10.10.10.12] => (item={'name': 'centos-sclo', 'description': 'CentOS-$releasever - SCLo', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-sclo'})
skipping: [10.10.10.10] => (item={'name': 'harbottle', 'description': 'Copr repo for main owned by harbottle', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/harbottle/main/epel-$releasever-$basearch/'})
skipping: [10.10.10.11] => (item={'name': 'nginx', 'description': 'Nginx Official Yum Repo', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'http://nginx.org/packages/centos/$releasever/$basearch/'})
skipping: [10.10.10.12] => (item={'name': 'centos-sclo-rh', 'description': 'CentOS-$releasever - SCLo rh', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh'})
skipping: [10.10.10.13] => (item={'name': 'pgdg13', 'description': 'PostgreSQL 13 for RHEL/CentOS $releasever - $basearch - Updates testing', 'gpgcheck': False, 'baseurl': 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch'})
skipping: [10.10.10.11] => (item={'name': 'haproxy', 'description': 'Copr repo for haproxy', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/roidelapluie/haproxy/epel-$releasever-$basearch/'})
skipping: [10.10.10.12] => (item={'name': 'nginx', 'description': 'Nginx Official Yum Repo', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'http://nginx.org/packages/centos/$releasever/$basearch/'})
skipping: [10.10.10.13] => (item={'name': 'centos-sclo', 'description': 'CentOS-$releasever - SCLo', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-sclo'})
skipping: [10.10.10.11] => (item={'name': 'harbottle', 'description': 'Copr repo for main owned by harbottle', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/harbottle/main/epel-$releasever-$basearch/'})
skipping: [10.10.10.12] => (item={'name': 'haproxy', 'description': 'Copr repo for haproxy', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/roidelapluie/haproxy/epel-$releasever-$basearch/'})
skipping: [10.10.10.13] => (item={'name': 'centos-sclo-rh', 'description': 'CentOS-$releasever - SCLo rh', 'gpgcheck': False, 'mirrorlist': 'http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh'})
skipping: [10.10.10.12] => (item={'name': 'harbottle', 'description': 'Copr repo for main owned by harbottle', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/harbottle/main/epel-$releasever-$basearch/'})
skipping: [10.10.10.13] => (item={'name': 'nginx', 'description': 'Nginx Official Yum Repo', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'http://nginx.org/packages/centos/$releasever/$basearch/'})
skipping: [10.10.10.13] => (item={'name': 'haproxy', 'description': 'Copr repo for haproxy', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/roidelapluie/haproxy/epel-$releasever-$basearch/'})
skipping: [10.10.10.13] => (item={'name': 'harbottle', 'description': 'Copr repo for main owned by harbottle', 'skip_if_unavailable': True, 'gpgcheck': False, 'baseurl': 'https://download.copr.fedorainfracloud.org/results/harbottle/main/epel-$releasever-$basearch/'})
TASK [node : Install local repo] **************************************************************************************************************************************************
changed: [10.10.10.11] => (item=http://yum.pigsty/pigsty.repo)
changed: [10.10.10.10] => (item=http://yum.pigsty/pigsty.repo)
changed: [10.10.10.12] => (item=http://yum.pigsty/pigsty.repo)
changed: [10.10.10.13] => (item=http://yum.pigsty/pigsty.repo)
TASK [Install node basic packages] ************************************************************************************************************************************************
skipping: [10.10.10.10] => (item=[])
skipping: [10.10.10.11] => (item=[])
skipping: [10.10.10.12] => (item=[])
skipping: [10.10.10.13] => (item=[])
TASK [Install node extra packages] ************************************************************************************************************************************************
skipping: [10.10.10.10] => (item=[])
skipping: [10.10.10.11] => (item=[])
skipping: [10.10.10.12] => (item=[])
skipping: [10.10.10.13] => (item=[])
TASK [node : Install meta specific packages] **************************************************************************************************************************************
skipping: [10.10.10.10] => (item=[])
skipping: [10.10.10.11] => (item=[])
skipping: [10.10.10.12] => (item=[])
skipping: [10.10.10.13] => (item=[])
TASK [Install node basic packages] ************************************************************************************************************************************************
changed: [10.10.10.10] => (item=['wget,yum-utils,ntp,chrony,tuned,uuid,lz4,vim-minimal,make,patch,bash,lsof,wget,unzip,git,readline,zlib,openssl', 'numactl,grubby,sysstat,dstat,iotop,bind-utils,net-tools,tcpdump,socat,ipvsadm,telnet,tuned,pv,jq', 'python3,python3-psycopg2,python36-requests,python3-etcd,python3-consul', 'python36-urllib3,python36-idna,python36-pyOpenSSL,python36-cryptography', 'node_exporter,consul,consul-template,etcd,haproxy,keepalived,vip-manager'])
changed: [10.10.10.13] => (item=['wget,yum-utils,ntp,chrony,tuned,uuid,lz4,vim-minimal,make,patch,bash,lsof,wget,unzip,git,readline,zlib,openssl', 'numactl,grubby,sysstat,dstat,iotop,bind-utils,net-tools,tcpdump,socat,ipvsadm,telnet,tuned,pv,jq', 'python3,python3-psycopg2,python36-requests,python3-etcd,python3-consul', 'python36-urllib3,python36-idna,python36-pyOpenSSL,python36-cryptography', 'node_exporter,consul,consul-template,etcd,haproxy,keepalived,vip-manager'])
changed: [10.10.10.12] => (item=['wget,yum-utils,ntp,chrony,tuned,uuid,lz4,vim-minimal,make,patch,bash,lsof,wget,unzip,git,readline,zlib,openssl', 'numactl,grubby,sysstat,dstat,iotop,bind-utils,net-tools,tcpdump,socat,ipvsadm,telnet,tuned,pv,jq', 'python3,python3-psycopg2,python36-requests,python3-etcd,python3-consul', 'python36-urllib3,python36-idna,python36-pyOpenSSL,python36-cryptography', 'node_exporter,consul,consul-template,etcd,haproxy,keepalived,vip-manager'])
changed: [10.10.10.11] => (item=['wget,yum-utils,ntp,chrony,tuned,uuid,lz4,vim-minimal,make,patch,bash,lsof,wget,unzip,git,readline,zlib,openssl', 'numactl,grubby,sysstat,dstat,iotop,bind-utils,net-tools,tcpdump,socat,ipvsadm,telnet,tuned,pv,jq', 'python3,python3-psycopg2,python36-requests,python3-etcd,python3-consul', 'python36-urllib3,python36-idna,python36-pyOpenSSL,python36-cryptography', 'node_exporter,consul,consul-template,etcd,haproxy,keepalived,vip-manager'])
TASK [Install node extra packages] ************************************************************************************************************************************************
changed: [10.10.10.10] => (item=['patroni,patroni-consul,patroni-etcd,pgbouncer,pgbadger,pg_activity'])
changed: [10.10.10.11] => (item=['patroni,patroni-consul,patroni-etcd,pgbouncer,pgbadger,pg_activity'])
changed: [10.10.10.13] => (item=['patroni,patroni-consul,patroni-etcd,pgbouncer,pgbadger,pg_activity'])
changed: [10.10.10.12] => (item=['patroni,patroni-consul,patroni-etcd,pgbouncer,pgbadger,pg_activity'])
TASK [node : Install meta specific packages] **************************************************************************************************************************************
skipping: [10.10.10.11] => (item=[])
skipping: [10.10.10.12] => (item=[])
skipping: [10.10.10.13] => (item=[])
changed: [10.10.10.10] => (item=['grafana,prometheus2,alertmanager,nginx_exporter,blackbox_exporter,pushgateway', 'dnsmasq,nginx,ansible,pgbadger,polysh'])
TASK [node : Node configure disable numa] *****************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [node : Node configure disable swap] *****************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [node : Node configure unmount swap] *****************************************************************************************************************************************
skipping: [10.10.10.10] => (item=swap)
skipping: [10.10.10.10] => (item=none)
skipping: [10.10.10.11] => (item=swap)
skipping: [10.10.10.11] => (item=none)
skipping: [10.10.10.12] => (item=swap)
skipping: [10.10.10.12] => (item=none)
skipping: [10.10.10.13] => (item=swap)
skipping: [10.10.10.13] => (item=none)
TASK [node : Node setup static network] *******************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.13]
TASK [node : Node configure disable firewall] *************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [node : Node configure disk prefetch] ****************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [node : Enable linux kernel modules] *****************************************************************************************************************************************
changed: [10.10.10.13] => (item=softdog)
changed: [10.10.10.11] => (item=softdog)
changed: [10.10.10.12] => (item=softdog)
changed: [10.10.10.10] => (item=softdog)
changed: [10.10.10.13] => (item=br_netfilter)
changed: [10.10.10.11] => (item=br_netfilter)
changed: [10.10.10.12] => (item=br_netfilter)
changed: [10.10.10.10] => (item=br_netfilter)
changed: [10.10.10.11] => (item=ip_vs)
changed: [10.10.10.13] => (item=ip_vs)
changed: [10.10.10.12] => (item=ip_vs)
changed: [10.10.10.10] => (item=ip_vs)
changed: [10.10.10.13] => (item=ip_vs_rr)
changed: [10.10.10.11] => (item=ip_vs_rr)
changed: [10.10.10.12] => (item=ip_vs_rr)
changed: [10.10.10.10] => (item=ip_vs_rr)
ok: [10.10.10.13] => (item=ip_vs_rr)
ok: [10.10.10.12] => (item=ip_vs_rr)
ok: [10.10.10.11] => (item=ip_vs_rr)
ok: [10.10.10.10] => (item=ip_vs_rr)
changed: [10.10.10.12] => (item=ip_vs_wrr)
changed: [10.10.10.13] => (item=ip_vs_wrr)
changed: [10.10.10.11] => (item=ip_vs_wrr)
changed: [10.10.10.10] => (item=ip_vs_wrr)
changed: [10.10.10.13] => (item=ip_vs_sh)
changed: [10.10.10.12] => (item=ip_vs_sh)
changed: [10.10.10.11] => (item=ip_vs_sh)
changed: [10.10.10.10] => (item=ip_vs_sh)
changed: [10.10.10.12] => (item=nf_conntrack_ipv4)
changed: [10.10.10.13] => (item=nf_conntrack_ipv4)
changed: [10.10.10.11] => (item=nf_conntrack_ipv4)
changed: [10.10.10.10] => (item=nf_conntrack_ipv4)
TASK [node : Enable kernel module on reboot] **************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.10]
TASK [node : Get config parameter page count] *************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.13]
TASK [node : Get config parameter page size] **************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.13]
TASK [node : Tune shmmax and shmall via mem] **************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [node : Create tuned profiles] ***********************************************************************************************************************************************
changed: [10.10.10.11] => (item=oltp)
changed: [10.10.10.12] => (item=oltp)
changed: [10.10.10.10] => (item=oltp)
changed: [10.10.10.13] => (item=oltp)
changed: [10.10.10.11] => (item=olap)
changed: [10.10.10.12] => (item=olap)
changed: [10.10.10.13] => (item=olap)
changed: [10.10.10.10] => (item=olap)
changed: [10.10.10.11] => (item=crit)
changed: [10.10.10.12] => (item=crit)
changed: [10.10.10.13] => (item=crit)
changed: [10.10.10.10] => (item=crit)
changed: [10.10.10.11] => (item=tiny)
changed: [10.10.10.12] => (item=tiny)
changed: [10.10.10.13] => (item=tiny)
changed: [10.10.10.10] => (item=tiny)
TASK [node : Render tuned profiles] ***********************************************************************************************************************************************
changed: [10.10.10.11] => (item=oltp)
changed: [10.10.10.12] => (item=oltp)
changed: [10.10.10.13] => (item=oltp)
changed: [10.10.10.10] => (item=oltp)
changed: [10.10.10.11] => (item=olap)
changed: [10.10.10.12] => (item=olap)
changed: [10.10.10.13] => (item=olap)
changed: [10.10.10.10] => (item=olap)
changed: [10.10.10.11] => (item=crit)
changed: [10.10.10.12] => (item=crit)
changed: [10.10.10.13] => (item=crit)
changed: [10.10.10.10] => (item=crit)
changed: [10.10.10.11] => (item=tiny)
changed: [10.10.10.13] => (item=tiny)
changed: [10.10.10.12] => (item=tiny)
changed: [10.10.10.10] => (item=tiny)
TASK [node : Active tuned profile] ************************************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.13]
TASK [node : Change additional sysctl params] *************************************************************************************************************************************
changed: [10.10.10.12] => (item={'key': 'net.bridge.bridge-nf-call-iptables', 'value': 1})
changed: [10.10.10.13] => (item={'key': 'net.bridge.bridge-nf-call-iptables', 'value': 1})
changed: [10.10.10.11] => (item={'key': 'net.bridge.bridge-nf-call-iptables', 'value': 1})
changed: [10.10.10.10] => (item={'key': 'net.bridge.bridge-nf-call-iptables', 'value': 1})
TASK [node : Copy default user bash profile] **************************************************************************************************************************************
changed: [10.10.10.13]
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [Setup node default pam ulimits] *********************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.10]
TASK [node : Create os user group admin] ******************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [node : Create os user admin] ************************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [node : Grant admin group nopass sudo] ***************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.10]
TASK [node : Add no host checking to ssh config] **********************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.11]
changed: [10.10.10.10]
TASK [node : Add admin ssh no host checking] **************************************************************************************************************************************
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.10]
ok: [10.10.10.13]
TASK [node : Fetch all admin public keys] *****************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [node : Exchange all admin ssh keys] *****************************************************************************************************************************************
changed: [10.10.10.11 -> meta] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC91q5Hb3sA1s/tvTVqvmTEN7qJtxrGkcEy7tdqzRDCp0F48GtNklsUAc4f3F0AOkavvyMKNoflz2dbiGtKejg3KraKrvw8RFSE3Yu1LHSjN8lULP9bsfpNmxlviJsECNgf+aXzZTh+r51iuuEgqPYVzzaIMqN4bYMYLI/4gAKgfPzMtIc3FzVd2WteAz6mOpr/bUD4CXVdqI0DLYokKbLwLtbxcO2jnQFWqRG6ap65UedgDlJ49BplKak6orG9+ONrK2kEDqFsLGssal0n7ZDK8FrQ68r1LJUWfbZ005pSBwvHcrnvJjhkmhHsD3xsi3hQMjWro9kDr0YhZRxSrLRt ansible-generated on node-1', '10.10.10.10'])
changed: [10.10.10.12 -> meta] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSE/dvAIoUA/zSRWRnIqVQAkuYiHXrbJ10NXEMEz/Z9o6oJKjNYPd8wDJFnkMfb1BOyf/LmTovMcWI5YOqXNLRlRQYElV4xY4Snn9/LmN57I36NqlawwldHAockpK8+5oOkKO9iyR9yOELZTM/qhb8V9nuqAAMO6VJqRWRGv0MJ8PO4geCf9SfOM4aQDdCBVptSpU/NO80cBs2AEfQu7yYcglNyJuuBjLPYTJJ07DIkOlh0E756XaXLArar96IKKX9rEL24vfPNzHRwdLP43wL+jKZjwJWCN5qAJcB7U40V8muTi8otyTbRLlQf5h/M5wu2Ku3g1mCdd8LvGlZrJ/Z ansible-generated on node-2', '10.10.10.10'])
changed: [10.10.10.13 -> meta] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzAzXokicngPIKexpo88YC4SlWoYAewbbzhrySUxOX8jS+g4GnsDdx1z5fj9fMtcXEQBBLH6+o5l3PeWY8jbELRAkFr0vqEI0RDBOcfAHmET/rgW9u0Y5cp0/QPfTGTBAZDArjuROBwEbTfggce/vp3KpDRIUbvYqBEdiD9Z3BAmK+GieVLH+tQbYLdOlmPvxMOOwyoQQx8JImEw394Wc+67u0cnDhVlJxgjIyZmlT4u1rSA37G0SN88lFF08XClOoEcLAMIsRQOnpen/+dy0hoAMXmk6RI189ykfzY/PKDRf1hPx3eXtkt8KmqeP8eBds+WDND/VVMSiLRSMwBOxj ansible-generated on node-3', '10.10.10.10'])
changed: [10.10.10.10 -> meta] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdVmesle8NEsdhX2SdbJFYMdb57qmJp03hlSRcJg42O9zIJK2j7USbrklbrAe2PLVKqZHtRsLhqRhNET3NSDEa8TzBj1uQ2NKlfgQJrLDffXh+HlauSSrfrSnfwhiN7F5AZd4nU6vgtVKtmM8cS8s/54iLfHZJ20IwTDOWs92BUalXs9zDkJGERYZmR97SmBr3oLiMvFArXvUbvF74w1SF8XHzmyztiJItGNkPU0Xp3zFQr5PqnciXo27IZNzzAGwAHHfEJmWbUESexVO7aC8J3uyttSa7tix4UJOzJyff3sfmfR7NZmTel5wgKC63omdyOpFf2Up5k3JfDNTT172d ansible-generated on meta', '10.10.10.10'])
changed: [10.10.10.11 -> node-1] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC91q5Hb3sA1s/tvTVqvmTEN7qJtxrGkcEy7tdqzRDCp0F48GtNklsUAc4f3F0AOkavvyMKNoflz2dbiGtKejg3KraKrvw8RFSE3Yu1LHSjN8lULP9bsfpNmxlviJsECNgf+aXzZTh+r51iuuEgqPYVzzaIMqN4bYMYLI/4gAKgfPzMtIc3FzVd2WteAz6mOpr/bUD4CXVdqI0DLYokKbLwLtbxcO2jnQFWqRG6ap65UedgDlJ49BplKak6orG9+ONrK2kEDqFsLGssal0n7ZDK8FrQ68r1LJUWfbZ005pSBwvHcrnvJjhkmhHsD3xsi3hQMjWro9kDr0YhZRxSrLRt ansible-generated on node-1', '10.10.10.11'])
changed: [10.10.10.12 -> node-1] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSE/dvAIoUA/zSRWRnIqVQAkuYiHXrbJ10NXEMEz/Z9o6oJKjNYPd8wDJFnkMfb1BOyf/LmTovMcWI5YOqXNLRlRQYElV4xY4Snn9/LmN57I36NqlawwldHAockpK8+5oOkKO9iyR9yOELZTM/qhb8V9nuqAAMO6VJqRWRGv0MJ8PO4geCf9SfOM4aQDdCBVptSpU/NO80cBs2AEfQu7yYcglNyJuuBjLPYTJJ07DIkOlh0E756XaXLArar96IKKX9rEL24vfPNzHRwdLP43wL+jKZjwJWCN5qAJcB7U40V8muTi8otyTbRLlQf5h/M5wu2Ku3g1mCdd8LvGlZrJ/Z ansible-generated on node-2', '10.10.10.11'])
changed: [10.10.10.10 -> node-1] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdVmesle8NEsdhX2SdbJFYMdb57qmJp03hlSRcJg42O9zIJK2j7USbrklbrAe2PLVKqZHtRsLhqRhNET3NSDEa8TzBj1uQ2NKlfgQJrLDffXh+HlauSSrfrSnfwhiN7F5AZd4nU6vgtVKtmM8cS8s/54iLfHZJ20IwTDOWs92BUalXs9zDkJGERYZmR97SmBr3oLiMvFArXvUbvF74w1SF8XHzmyztiJItGNkPU0Xp3zFQr5PqnciXo27IZNzzAGwAHHfEJmWbUESexVO7aC8J3uyttSa7tix4UJOzJyff3sfmfR7NZmTel5wgKC63omdyOpFf2Up5k3JfDNTT172d ansible-generated on meta', '10.10.10.11'])
changed: [10.10.10.13 -> node-1] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzAzXokicngPIKexpo88YC4SlWoYAewbbzhrySUxOX8jS+g4GnsDdx1z5fj9fMtcXEQBBLH6+o5l3PeWY8jbELRAkFr0vqEI0RDBOcfAHmET/rgW9u0Y5cp0/QPfTGTBAZDArjuROBwEbTfggce/vp3KpDRIUbvYqBEdiD9Z3BAmK+GieVLH+tQbYLdOlmPvxMOOwyoQQx8JImEw394Wc+67u0cnDhVlJxgjIyZmlT4u1rSA37G0SN88lFF08XClOoEcLAMIsRQOnpen/+dy0hoAMXmk6RI189ykfzY/PKDRf1hPx3eXtkt8KmqeP8eBds+WDND/VVMSiLRSMwBOxj ansible-generated on node-3', '10.10.10.11'])
changed: [10.10.10.11 -> node-2] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC91q5Hb3sA1s/tvTVqvmTEN7qJtxrGkcEy7tdqzRDCp0F48GtNklsUAc4f3F0AOkavvyMKNoflz2dbiGtKejg3KraKrvw8RFSE3Yu1LHSjN8lULP9bsfpNmxlviJsECNgf+aXzZTh+r51iuuEgqPYVzzaIMqN4bYMYLI/4gAKgfPzMtIc3FzVd2WteAz6mOpr/bUD4CXVdqI0DLYokKbLwLtbxcO2jnQFWqRG6ap65UedgDlJ49BplKak6orG9+ONrK2kEDqFsLGssal0n7ZDK8FrQ68r1LJUWfbZ005pSBwvHcrnvJjhkmhHsD3xsi3hQMjWro9kDr0YhZRxSrLRt ansible-generated on node-1', '10.10.10.12'])
changed: [10.10.10.12 -> node-2] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSE/dvAIoUA/zSRWRnIqVQAkuYiHXrbJ10NXEMEz/Z9o6oJKjNYPd8wDJFnkMfb1BOyf/LmTovMcWI5YOqXNLRlRQYElV4xY4Snn9/LmN57I36NqlawwldHAockpK8+5oOkKO9iyR9yOELZTM/qhb8V9nuqAAMO6VJqRWRGv0MJ8PO4geCf9SfOM4aQDdCBVptSpU/NO80cBs2AEfQu7yYcglNyJuuBjLPYTJJ07DIkOlh0E756XaXLArar96IKKX9rEL24vfPNzHRwdLP43wL+jKZjwJWCN5qAJcB7U40V8muTi8otyTbRLlQf5h/M5wu2Ku3g1mCdd8LvGlZrJ/Z ansible-generated on node-2', '10.10.10.12'])
changed: [10.10.10.10 -> node-2] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdVmesle8NEsdhX2SdbJFYMdb57qmJp03hlSRcJg42O9zIJK2j7USbrklbrAe2PLVKqZHtRsLhqRhNET3NSDEa8TzBj1uQ2NKlfgQJrLDffXh+HlauSSrfrSnfwhiN7F5AZd4nU6vgtVKtmM8cS8s/54iLfHZJ20IwTDOWs92BUalXs9zDkJGERYZmR97SmBr3oLiMvFArXvUbvF74w1SF8XHzmyztiJItGNkPU0Xp3zFQr5PqnciXo27IZNzzAGwAHHfEJmWbUESexVO7aC8J3uyttSa7tix4UJOzJyff3sfmfR7NZmTel5wgKC63omdyOpFf2Up5k3JfDNTT172d ansible-generated on meta', '10.10.10.12'])
changed: [10.10.10.13 -> node-2] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzAzXokicngPIKexpo88YC4SlWoYAewbbzhrySUxOX8jS+g4GnsDdx1z5fj9fMtcXEQBBLH6+o5l3PeWY8jbELRAkFr0vqEI0RDBOcfAHmET/rgW9u0Y5cp0/QPfTGTBAZDArjuROBwEbTfggce/vp3KpDRIUbvYqBEdiD9Z3BAmK+GieVLH+tQbYLdOlmPvxMOOwyoQQx8JImEw394Wc+67u0cnDhVlJxgjIyZmlT4u1rSA37G0SN88lFF08XClOoEcLAMIsRQOnpen/+dy0hoAMXmk6RI189ykfzY/PKDRf1hPx3eXtkt8KmqeP8eBds+WDND/VVMSiLRSMwBOxj ansible-generated on node-3', '10.10.10.12'])
changed: [10.10.10.11 -> node-3] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC91q5Hb3sA1s/tvTVqvmTEN7qJtxrGkcEy7tdqzRDCp0F48GtNklsUAc4f3F0AOkavvyMKNoflz2dbiGtKejg3KraKrvw8RFSE3Yu1LHSjN8lULP9bsfpNmxlviJsECNgf+aXzZTh+r51iuuEgqPYVzzaIMqN4bYMYLI/4gAKgfPzMtIc3FzVd2WteAz6mOpr/bUD4CXVdqI0DLYokKbLwLtbxcO2jnQFWqRG6ap65UedgDlJ49BplKak6orG9+ONrK2kEDqFsLGssal0n7ZDK8FrQ68r1LJUWfbZ005pSBwvHcrnvJjhkmhHsD3xsi3hQMjWro9kDr0YhZRxSrLRt ansible-generated on node-1', '10.10.10.13'])
changed: [10.10.10.12 -> node-3] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSE/dvAIoUA/zSRWRnIqVQAkuYiHXrbJ10NXEMEz/Z9o6oJKjNYPd8wDJFnkMfb1BOyf/LmTovMcWI5YOqXNLRlRQYElV4xY4Snn9/LmN57I36NqlawwldHAockpK8+5oOkKO9iyR9yOELZTM/qhb8V9nuqAAMO6VJqRWRGv0MJ8PO4geCf9SfOM4aQDdCBVptSpU/NO80cBs2AEfQu7yYcglNyJuuBjLPYTJJ07DIkOlh0E756XaXLArar96IKKX9rEL24vfPNzHRwdLP43wL+jKZjwJWCN5qAJcB7U40V8muTi8otyTbRLlQf5h/M5wu2Ku3g1mCdd8LvGlZrJ/Z ansible-generated on node-2', '10.10.10.13'])
changed: [10.10.10.10 -> node-3] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdVmesle8NEsdhX2SdbJFYMdb57qmJp03hlSRcJg42O9zIJK2j7USbrklbrAe2PLVKqZHtRsLhqRhNET3NSDEa8TzBj1uQ2NKlfgQJrLDffXh+HlauSSrfrSnfwhiN7F5AZd4nU6vgtVKtmM8cS8s/54iLfHZJ20IwTDOWs92BUalXs9zDkJGERYZmR97SmBr3oLiMvFArXvUbvF74w1SF8XHzmyztiJItGNkPU0Xp3zFQr5PqnciXo27IZNzzAGwAHHfEJmWbUESexVO7aC8J3uyttSa7tix4UJOzJyff3sfmfR7NZmTel5wgKC63omdyOpFf2Up5k3JfDNTT172d ansible-generated on meta', '10.10.10.13'])
changed: [10.10.10.13 -> node-3] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzAzXokicngPIKexpo88YC4SlWoYAewbbzhrySUxOX8jS+g4GnsDdx1z5fj9fMtcXEQBBLH6+o5l3PeWY8jbELRAkFr0vqEI0RDBOcfAHmET/rgW9u0Y5cp0/QPfTGTBAZDArjuROBwEbTfggce/vp3KpDRIUbvYqBEdiD9Z3BAmK+GieVLH+tQbYLdOlmPvxMOOwyoQQx8JImEw394Wc+67u0cnDhVlJxgjIyZmlT4u1rSA37G0SN88lFF08XClOoEcLAMIsRQOnpen/+dy0hoAMXmk6RI189ykfzY/PKDRf1hPx3eXtkt8KmqeP8eBds+WDND/VVMSiLRSMwBOxj ansible-generated on node-3', '10.10.10.13'])
TASK [node : Install public keys] *************************************************************************************************************************************************
changed: [10.10.10.11] => (item=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC7IMAMNavYtWwzAJajKqwdn3ar5BhvcwCnBTxxEkXhGlCO2vfgosSAQMEflfgvkiI5nM1HIFQ8KINlx1XLO7SdL5KdInG5LIJjAFh0pujS4kNCT9a5IGvSq1BrzGqhbEcwWYdju1ZPYBcJm/MG+JD0dYCh8vfrYB/cYMD0SOmNkQ== vagrant@pigsty.com)
changed: [10.10.10.12] => (item=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC7IMAMNavYtWwzAJajKqwdn3ar5BhvcwCnBTxxEkXhGlCO2vfgosSAQMEflfgvkiI5nM1HIFQ8KINlx1XLO7SdL5KdInG5LIJjAFh0pujS4kNCT9a5IGvSq1BrzGqhbEcwWYdju1ZPYBcJm/MG+JD0dYCh8vfrYB/cYMD0SOmNkQ== vagrant@pigsty.com)
changed: [10.10.10.13] => (item=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC7IMAMNavYtWwzAJajKqwdn3ar5BhvcwCnBTxxEkXhGlCO2vfgosSAQMEflfgvkiI5nM1HIFQ8KINlx1XLO7SdL5KdInG5LIJjAFh0pujS4kNCT9a5IGvSq1BrzGqhbEcwWYdju1ZPYBcJm/MG+JD0dYCh8vfrYB/cYMD0SOmNkQ== vagrant@pigsty.com)
changed: [10.10.10.10] => (item=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC7IMAMNavYtWwzAJajKqwdn3ar5BhvcwCnBTxxEkXhGlCO2vfgosSAQMEflfgvkiI5nM1HIFQ8KINlx1XLO7SdL5KdInG5LIJjAFh0pujS4kNCT9a5IGvSq1BrzGqhbEcwWYdju1ZPYBcJm/MG+JD0dYCh8vfrYB/cYMD0SOmNkQ== vagrant@pigsty.com)
TASK [node : Install ntp package] *************************************************************************************************************************************************
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
ok: [10.10.10.10]
TASK [node : Install chrony package] **********************************************************************************************************************************************
ok: [10.10.10.12]
ok: [10.10.10.13]
ok: [10.10.10.11]
ok: [10.10.10.10]
TASK [Setup default node timezone] ************************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.10]
TASK [node : Copy the ntp.conf file] **********************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
changed: [10.10.10.10]
TASK [node : Copy the chrony.conf template] ***************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
changed: [10.10.10.10]
TASK [node : Launch ntpd service] *************************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [node : Launch chronyd service] **********************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
PLAY [Init meta service] **********************************************************************************************************************************************************
TASK [Create local ca directory] **************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Copy ca cert from local files] **********************************************************************************************************************************************
skipping: [10.10.10.10] => (item=ca.key)
skipping: [10.10.10.10] => (item=ca.crt)
TASK [Check ca key cert exists] ***************************************************************************************************************************************************
ok: [10.10.10.10]
TASK [ca : Create self-signed CA key-cert] ****************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Make sure nginx package installed] ******************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Copy nginx default config] **************************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Copy nginx upstream conf] ***************************************************************************************************************************************************
changed: [10.10.10.10] => (item={'name': 'home', 'host': 'pigsty', 'url': '127.0.0.1:3000'})
changed: [10.10.10.10] => (item={'name': 'consul', 'host': 'c.pigsty', 'url': '127.0.0.1:8500'})
changed: [10.10.10.10] => (item={'name': 'grafana', 'host': 'g.pigsty', 'url': '127.0.0.1:3000'})
changed: [10.10.10.10] => (item={'name': 'prometheus', 'host': 'p.pigsty', 'url': '127.0.0.1:9090'})
changed: [10.10.10.10] => (item={'name': 'alertmanager', 'host': 'a.pigsty', 'url': '127.0.0.1:9093'})
TASK [nginx : Create local html directory] ****************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Update default nginx index page] ********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Restart meta nginx service] *************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Wait for nginx service online] **********************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Make sure nginx exporter installed] *****************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Config nginx_exporter options] **********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Restart nginx_exporter service] *********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Wait for nginx exporter online] *********************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Install prometheus and alertmanager] ****************************************************************************************************************************************
ok: [10.10.10.10] => (item=prometheus2)
ok: [10.10.10.10] => (item=alertmanager)
TASK [Wipe out prometheus config dir] *********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Wipe out existing prometheus data] ******************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Recreate prometheus data dir] ***********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Copy /etc/prometheus configs] ***********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Copy /etc/prometheus opts] **************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Overwrite prometheus scrape_interval] ***************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Overwrite prometheus evaluation_interval] ***********************************************************************************************************************************
changed: [10.10.10.10]
TASK [Overwrite prometheus scrape_timeout] ****************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Overwrite prometheus pg metrics path] ***************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Launch prometheus service] **************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [prometheus : Launch alertmanager service] ***********************************************************************************************************************************
changed: [10.10.10.10]
TASK [Wait for prometheus online] *************************************************************************************************************************************************
ok: [10.10.10.10]
TASK [prometheus : Wait for alertmanager online] **********************************************************************************************************************************
ok: [10.10.10.10]
TASK [Make sure grafana is installed] *********************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Check grafana plugin cache exists] ******************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Provision grafana plugins via cache] ****************************************************************************************************************************************
skipping: [10.10.10.10]
TASK [Download grafana plugins from web] ******************************************************************************************************************************************
changed: [10.10.10.10] => (item=redis-datasource)
changed: [10.10.10.10] => (item=simpod-json-datasource)
changed: [10.10.10.10] => (item=fifemon-graphql-datasource)
changed: [10.10.10.10] => (item=sbueringer-consul-datasource)
changed: [10.10.10.10] => (item=camptocamp-prometheus-alertmanager-datasource)
changed: [10.10.10.10] => (item=ryantxu-ajax-panel)
changed: [10.10.10.10] => (item=marcusolsson-hourly-heatmap-panel)
changed: [10.10.10.10] => (item=michaeldmoore-multistat-panel)
changed: [10.10.10.10] => (item=marcusolsson-treemap-panel)
changed: [10.10.10.10] => (item=pr0ps-trackmap-panel)
changed: [10.10.10.10] => (item=dalvany-image-panel)
changed: [10.10.10.10] => (item=magnesium-wordcloud-panel)
changed: [10.10.10.10] => (item=cloudspout-button-panel)
changed: [10.10.10.10] => (item=speakyourcode-button-panel)
changed: [10.10.10.10] => (item=jdbranham-diagram-panel)
changed: [10.10.10.10] => (item=grafana-piechart-panel)
changed: [10.10.10.10] => (item=snuids-radar-panel)
changed: [10.10.10.10] => (item=digrich-bubblechart-panel)
TASK [Download grafana plugins from web] ******************************************************************************************************************************************
changed: [10.10.10.10] => (item=https://github.com/Vonng/grafana-echarts)
TASK [Create grafana plugins cache] ***********************************************************************************************************************************************
[WARNING]: Consider using the file module with state=directory rather than running 'mkdir'. If you need to use command because file is insufficient you can add 'warn: false' to
this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
changed: [10.10.10.10]
TASK [Copy /etc/grafana/grafana.ini] **********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Remove grafana provision dir] ***********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [grafana : Copy provisioning content] ****************************************************************************************************************************************
changed: [10.10.10.10]
TASK [grafana : Copy pigsty dashboards] *******************************************************************************************************************************************
changed: [10.10.10.10]
TASK [grafana : Copy pigsty icon image] *******************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Replace grafana icon with pigsty] *******************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Launch grafana service] *****************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Wait for grafana online] ****************************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Update grafana default preferences] *****************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Register consul grafana service] ********************************************************************************************************************************************
changed: [10.10.10.10]
TASK [grafana : Reload consul] ****************************************************************************************************************************************************
changed: [10.10.10.10]
PLAY [Init dcs] *******************************************************************************************************************************************************************
TASK [Check for existing consul] **************************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
TASK [consul : Consul exists flag fact set] ***************************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [Abort due to consul exists] *************************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Clean existing consul instance] *********************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Stop any running consul instance] *******************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [Remove existing consul dir] *************************************************************************************************************************************************
changed: [10.10.10.10] => (item=/etc/consul.d)
changed: [10.10.10.11] => (item=/etc/consul.d)
changed: [10.10.10.12] => (item=/etc/consul.d)
changed: [10.10.10.13] => (item=/etc/consul.d)
changed: [10.10.10.10] => (item=/var/lib/consul)
changed: [10.10.10.11] => (item=/var/lib/consul)
changed: [10.10.10.12] => (item=/var/lib/consul)
changed: [10.10.10.13] => (item=/var/lib/consul)
TASK [Recreate consul dir] ********************************************************************************************************************************************************
changed: [10.10.10.10] => (item=/etc/consul.d)
changed: [10.10.10.11] => (item=/etc/consul.d)
changed: [10.10.10.12] => (item=/etc/consul.d)
changed: [10.10.10.13] => (item=/etc/consul.d)
changed: [10.10.10.10] => (item=/var/lib/consul)
changed: [10.10.10.11] => (item=/var/lib/consul)
changed: [10.10.10.12] => (item=/var/lib/consul)
changed: [10.10.10.13] => (item=/var/lib/consul)
TASK [Make sure consul is installed] **********************************************************************************************************************************************
ok: [10.10.10.11]
ok: [10.10.10.10]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [Make sure consul dir exists] ************************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [consul : Get dcs server node names] *****************************************************************************************************************************************
ok: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [consul : Get dcs node name from var] ****************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [consul : Get dcs node name from var] ****************************************************************************************************************************************
skipping: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [consul : Fetch hostname as dcs node name] ***********************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [consul : Get dcs name from hostname] ****************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Copy /etc/consul.d/consul.json] *********************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [Copy consul agent service] **************************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
TASK [consul : Get dcs bootstrap expect quroum] ***********************************************************************************************************************************
ok: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Copy consul server service unit] ********************************************************************************************************************************************
changed: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Launch consul server service] ***********************************************************************************************************************************************
changed: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Wait for consul server online] **********************************************************************************************************************************************
ok: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Launch consul agent service] ************************************************************************************************************************************************
skipping: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
TASK [Wait for consul agent online] ***********************************************************************************************************************************************
skipping: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
PLAY [Copy ansible scripts] *******************************************************************************************************************************************************
TASK [Create ansible tarball] *****************************************************************************************************************************************************
ok: [10.10.10.10]
TASK [Create ansible directory] ***************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Copy ansible tarball] *******************************************************************************************************************************************************
changed: [10.10.10.10]
TASK [Extract tarball] ************************************************************************************************************************************************************
changed: [10.10.10.10]
PLAY RECAP ************************************************************************************************************************************************************************
10.10.10.10 : ok=117 changed=89 unreachable=0 failed=0 skipped=25 rescued=0 ignored=2
10.10.10.11 : ok=50 changed=42 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0
10.10.10.12 : ok=50 changed=42 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0
10.10.10.13 : ok=50 changed=42 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0
./initdb.yml # provision pg-test and pg-meta
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [Init database cluster] ******************************************************************************************************************************************************
TASK [Create os group postgres] ***************************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
changed: [10.10.10.10]
TASK [postgres : Make sure dcs group exists] **************************************************************************************************************************************
ok: [10.10.10.10] => (item=consul)
ok: [10.10.10.11] => (item=consul)
ok: [10.10.10.12] => (item=consul)
ok: [10.10.10.13] => (item=consul)
ok: [10.10.10.10] => (item=etcd)
ok: [10.10.10.11] => (item=etcd)
ok: [10.10.10.12] => (item=etcd)
ok: [10.10.10.13] => (item=etcd)
TASK [Create dbsu postgres] *******************************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.13]
TASK [postgres : Grant dbsu nopass sudo] ******************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [postgres : Grant dbsu all sudo] *********************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [postgres : Grant dbsu limited sudo] *****************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Config patroni watchdog support] *********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.11]
changed: [10.10.10.13]
TASK [postgres : Add dbsu ssh no host checking] ***********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.11]
changed: [10.10.10.13]
TASK [postgres : Fetch dbsu public keys] ******************************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [postgres : Exchange dbsu ssh keys] ******************************************************************************************************************************************
skipping: [10.10.10.10] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz/f3p10oc4lTVSFeeyX5L4i+3JLVFeFPU1pY2rj1iibXZNXhN89Go3W/TjJGCmnAN/QZolSSJk1hDaTiVFu3nsCovxWeijJgEOrsE8tjFFM5UhzwIrGooh83wDzz/ih5JtbRFzMyU9O+0jTfxrdjXR7h4ppysvgoRP96RArPyEkb6Dyh7VM3Oc6djETI6WZBid2lQhO01KE+RaCn1ABImrbwv1B1upjooKBNIMgkdoZqSK1bLDFWHOcqvOkpbDdo0dDPlzLX8kY4mGHyeZpXTx1F5IbHMTn8ZTbEHNA4z67msMLlBny8pH+3xX4J3TcSRoBjfO9hawDYd52v/7niB ansible-generated on meta', '10.10.10.10'])
skipping: [10.10.10.10] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz/f3p10oc4lTVSFeeyX5L4i+3JLVFeFPU1pY2rj1iibXZNXhN89Go3W/TjJGCmnAN/QZolSSJk1hDaTiVFu3nsCovxWeijJgEOrsE8tjFFM5UhzwIrGooh83wDzz/ih5JtbRFzMyU9O+0jTfxrdjXR7h4ppysvgoRP96RArPyEkb6Dyh7VM3Oc6djETI6WZBid2lQhO01KE+RaCn1ABImrbwv1B1upjooKBNIMgkdoZqSK1bLDFWHOcqvOkpbDdo0dDPlzLX8kY4mGHyeZpXTx1F5IbHMTn8ZTbEHNA4z67msMLlBny8pH+3xX4J3TcSRoBjfO9hawDYd52v/7niB ansible-generated on meta', '10.10.10.11'])
skipping: [10.10.10.10] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz/f3p10oc4lTVSFeeyX5L4i+3JLVFeFPU1pY2rj1iibXZNXhN89Go3W/TjJGCmnAN/QZolSSJk1hDaTiVFu3nsCovxWeijJgEOrsE8tjFFM5UhzwIrGooh83wDzz/ih5JtbRFzMyU9O+0jTfxrdjXR7h4ppysvgoRP96RArPyEkb6Dyh7VM3Oc6djETI6WZBid2lQhO01KE+RaCn1ABImrbwv1B1upjooKBNIMgkdoZqSK1bLDFWHOcqvOkpbDdo0dDPlzLX8kY4mGHyeZpXTx1F5IbHMTn8ZTbEHNA4z67msMLlBny8pH+3xX4J3TcSRoBjfO9hawDYd52v/7niB ansible-generated on meta', '10.10.10.12'])
skipping: [10.10.10.10] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz/f3p10oc4lTVSFeeyX5L4i+3JLVFeFPU1pY2rj1iibXZNXhN89Go3W/TjJGCmnAN/QZolSSJk1hDaTiVFu3nsCovxWeijJgEOrsE8tjFFM5UhzwIrGooh83wDzz/ih5JtbRFzMyU9O+0jTfxrdjXR7h4ppysvgoRP96RArPyEkb6Dyh7VM3Oc6djETI6WZBid2lQhO01KE+RaCn1ABImrbwv1B1upjooKBNIMgkdoZqSK1bLDFWHOcqvOkpbDdo0dDPlzLX8kY4mGHyeZpXTx1F5IbHMTn8ZTbEHNA4z67msMLlBny8pH+3xX4J3TcSRoBjfO9hawDYd52v/7niB ansible-generated on meta', '10.10.10.13'])
skipping: [10.10.10.11] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDxIW4SHXbcctajhV1R5zb+nMiHzSgfuuiN1whv0UyNkRptxYFV/hdn/FIbJg+Ur4cdgYu28W5IgB5nNsyfxfLzHQS/8OD32gKnJHpTI6bqcwjTc1c+vyjEK8jGLiSLBVSYQgKPDfKhBPA5uCQnHL+Wf6EpSYpPMLw40Zp45Lnha4SC82I8VaPZsLQ1jpYn88Qcr1XryGQSAw+Cx6DQ50ZPgLqja3+MRSARPRNiQJVN0LMYiW8SGWFtfunlhxTXiwZUEBOxfvh6cxzATpx9amFROQvP2r5u6OYgUSaQC8dmRwA4fPuFbTtm/MVWVfhW+EEnwzXWNys4QtG1GeORSJnV ansible-generated on node-1', '10.10.10.10'])
skipping: [10.10.10.11] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDxIW4SHXbcctajhV1R5zb+nMiHzSgfuuiN1whv0UyNkRptxYFV/hdn/FIbJg+Ur4cdgYu28W5IgB5nNsyfxfLzHQS/8OD32gKnJHpTI6bqcwjTc1c+vyjEK8jGLiSLBVSYQgKPDfKhBPA5uCQnHL+Wf6EpSYpPMLw40Zp45Lnha4SC82I8VaPZsLQ1jpYn88Qcr1XryGQSAw+Cx6DQ50ZPgLqja3+MRSARPRNiQJVN0LMYiW8SGWFtfunlhxTXiwZUEBOxfvh6cxzATpx9amFROQvP2r5u6OYgUSaQC8dmRwA4fPuFbTtm/MVWVfhW+EEnwzXWNys4QtG1GeORSJnV ansible-generated on node-1', '10.10.10.11'])
skipping: [10.10.10.11] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDxIW4SHXbcctajhV1R5zb+nMiHzSgfuuiN1whv0UyNkRptxYFV/hdn/FIbJg+Ur4cdgYu28W5IgB5nNsyfxfLzHQS/8OD32gKnJHpTI6bqcwjTc1c+vyjEK8jGLiSLBVSYQgKPDfKhBPA5uCQnHL+Wf6EpSYpPMLw40Zp45Lnha4SC82I8VaPZsLQ1jpYn88Qcr1XryGQSAw+Cx6DQ50ZPgLqja3+MRSARPRNiQJVN0LMYiW8SGWFtfunlhxTXiwZUEBOxfvh6cxzATpx9amFROQvP2r5u6OYgUSaQC8dmRwA4fPuFbTtm/MVWVfhW+EEnwzXWNys4QtG1GeORSJnV ansible-generated on node-1', '10.10.10.12'])
skipping: [10.10.10.11] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDxIW4SHXbcctajhV1R5zb+nMiHzSgfuuiN1whv0UyNkRptxYFV/hdn/FIbJg+Ur4cdgYu28W5IgB5nNsyfxfLzHQS/8OD32gKnJHpTI6bqcwjTc1c+vyjEK8jGLiSLBVSYQgKPDfKhBPA5uCQnHL+Wf6EpSYpPMLw40Zp45Lnha4SC82I8VaPZsLQ1jpYn88Qcr1XryGQSAw+Cx6DQ50ZPgLqja3+MRSARPRNiQJVN0LMYiW8SGWFtfunlhxTXiwZUEBOxfvh6cxzATpx9amFROQvP2r5u6OYgUSaQC8dmRwA4fPuFbTtm/MVWVfhW+EEnwzXWNys4QtG1GeORSJnV ansible-generated on node-1', '10.10.10.13'])
skipping: [10.10.10.12] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpLmhWa93mnsaBEuYbKdM+bol6E3l23zIfizwf1AYH53mO7Sk4op1dC9dqMB5j0DUxoqroB/UHMwRtgjjvfmIM1cNP/7oqHcv2jQMALg1BLYZvyrVT4iNrOT7NETzLqp9VlhYdJB3QGv1d1r4FrDZIxrFHZ78llMTqU7BSQFQK4BhU98aYpmr1cKOBmYT/ptTTxJF4GPh3WOH5Pqy62S6RanWIbSpneFhOy1FPFhxbG7m7w139FxelkKwOZTYNoexb0HzusPYFG5YGyv6uLjijKZj5KlUDbGWRj453GiyQaEJakTTs6/NVh6ZgcDRvBoTBJ3yo3xEqEShpdajcB7I1 ansible-generated on node-2', '10.10.10.10'])
skipping: [10.10.10.12] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpLmhWa93mnsaBEuYbKdM+bol6E3l23zIfizwf1AYH53mO7Sk4op1dC9dqMB5j0DUxoqroB/UHMwRtgjjvfmIM1cNP/7oqHcv2jQMALg1BLYZvyrVT4iNrOT7NETzLqp9VlhYdJB3QGv1d1r4FrDZIxrFHZ78llMTqU7BSQFQK4BhU98aYpmr1cKOBmYT/ptTTxJF4GPh3WOH5Pqy62S6RanWIbSpneFhOy1FPFhxbG7m7w139FxelkKwOZTYNoexb0HzusPYFG5YGyv6uLjijKZj5KlUDbGWRj453GiyQaEJakTTs6/NVh6ZgcDRvBoTBJ3yo3xEqEShpdajcB7I1 ansible-generated on node-2', '10.10.10.11'])
skipping: [10.10.10.12] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpLmhWa93mnsaBEuYbKdM+bol6E3l23zIfizwf1AYH53mO7Sk4op1dC9dqMB5j0DUxoqroB/UHMwRtgjjvfmIM1cNP/7oqHcv2jQMALg1BLYZvyrVT4iNrOT7NETzLqp9VlhYdJB3QGv1d1r4FrDZIxrFHZ78llMTqU7BSQFQK4BhU98aYpmr1cKOBmYT/ptTTxJF4GPh3WOH5Pqy62S6RanWIbSpneFhOy1FPFhxbG7m7w139FxelkKwOZTYNoexb0HzusPYFG5YGyv6uLjijKZj5KlUDbGWRj453GiyQaEJakTTs6/NVh6ZgcDRvBoTBJ3yo3xEqEShpdajcB7I1 ansible-generated on node-2', '10.10.10.12'])
skipping: [10.10.10.12] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpLmhWa93mnsaBEuYbKdM+bol6E3l23zIfizwf1AYH53mO7Sk4op1dC9dqMB5j0DUxoqroB/UHMwRtgjjvfmIM1cNP/7oqHcv2jQMALg1BLYZvyrVT4iNrOT7NETzLqp9VlhYdJB3QGv1d1r4FrDZIxrFHZ78llMTqU7BSQFQK4BhU98aYpmr1cKOBmYT/ptTTxJF4GPh3WOH5Pqy62S6RanWIbSpneFhOy1FPFhxbG7m7w139FxelkKwOZTYNoexb0HzusPYFG5YGyv6uLjijKZj5KlUDbGWRj453GiyQaEJakTTs6/NVh6ZgcDRvBoTBJ3yo3xEqEShpdajcB7I1 ansible-generated on node-2', '10.10.10.13'])
skipping: [10.10.10.13] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDW96BM03YtE7bGMpHGBKFpZPUTZHY4BXR/63YjlqoNWQS8WETI0Q+nXhMK52sf2cFYK96PlypP6sP7hAZrbNGJ2w1pV5HCyh1ec2TjnnnRkn7DlZhi84HrqKZP8+1DsQ4R0KsX0gTEy9mGetN/zLkWlsr+Pzsnzj1Oty07XHDndCXUk77zqpt9Abyk/Hpo2cWDuSGxoyjXPGtXnOAXbX0+u3e2ZNIfGGl9lubIyOZty8h9XCamnH5xzwXBYJ67543m7Y49SBTP8l0oE5e/TQTvt5wgt+XYaGSC+JS0/g/YuOa072GJ/EpWvfYlij4cm5u+meUXJky07UxHHe391iYD ansible-generated on node-3', '10.10.10.10'])
skipping: [10.10.10.13] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDW96BM03YtE7bGMpHGBKFpZPUTZHY4BXR/63YjlqoNWQS8WETI0Q+nXhMK52sf2cFYK96PlypP6sP7hAZrbNGJ2w1pV5HCyh1ec2TjnnnRkn7DlZhi84HrqKZP8+1DsQ4R0KsX0gTEy9mGetN/zLkWlsr+Pzsnzj1Oty07XHDndCXUk77zqpt9Abyk/Hpo2cWDuSGxoyjXPGtXnOAXbX0+u3e2ZNIfGGl9lubIyOZty8h9XCamnH5xzwXBYJ67543m7Y49SBTP8l0oE5e/TQTvt5wgt+XYaGSC+JS0/g/YuOa072GJ/EpWvfYlij4cm5u+meUXJky07UxHHe391iYD ansible-generated on node-3', '10.10.10.11'])
skipping: [10.10.10.13] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDW96BM03YtE7bGMpHGBKFpZPUTZHY4BXR/63YjlqoNWQS8WETI0Q+nXhMK52sf2cFYK96PlypP6sP7hAZrbNGJ2w1pV5HCyh1ec2TjnnnRkn7DlZhi84HrqKZP8+1DsQ4R0KsX0gTEy9mGetN/zLkWlsr+Pzsnzj1Oty07XHDndCXUk77zqpt9Abyk/Hpo2cWDuSGxoyjXPGtXnOAXbX0+u3e2ZNIfGGl9lubIyOZty8h9XCamnH5xzwXBYJ67543m7Y49SBTP8l0oE5e/TQTvt5wgt+XYaGSC+JS0/g/YuOa072GJ/EpWvfYlij4cm5u+meUXJky07UxHHe391iYD ansible-generated on node-3', '10.10.10.12'])
skipping: [10.10.10.13] => (item=['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDW96BM03YtE7bGMpHGBKFpZPUTZHY4BXR/63YjlqoNWQS8WETI0Q+nXhMK52sf2cFYK96PlypP6sP7hAZrbNGJ2w1pV5HCyh1ec2TjnnnRkn7DlZhi84HrqKZP8+1DsQ4R0KsX0gTEy9mGetN/zLkWlsr+Pzsnzj1Oty07XHDndCXUk77zqpt9Abyk/Hpo2cWDuSGxoyjXPGtXnOAXbX0+u3e2ZNIfGGl9lubIyOZty8h9XCamnH5xzwXBYJ67543m7Y49SBTP8l0oE5e/TQTvt5wgt+XYaGSC+JS0/g/YuOa072GJ/EpWvfYlij4cm5u+meUXJky07UxHHe391iYD ansible-generated on node-3', '10.10.10.13'])
TASK [postgres : Install offical pgdg yum repo] ***********************************************************************************************************************************
skipping: [10.10.10.10] => (item=postgresql${pg_version}*)
skipping: [10.10.10.10] => (item=postgis31_${pg_version}*)
skipping: [10.10.10.11] => (item=postgresql${pg_version}*)
skipping: [10.10.10.10] => (item=pgbouncer patroni pg_exporter pgbadger)
skipping: [10.10.10.10] => (item=patroni patroni-consul patroni-etcd pgbouncer pgbadger pg_activity)
skipping: [10.10.10.11] => (item=postgis31_${pg_version}*)
skipping: [10.10.10.10] => (item=python3 python3-psycopg2 python36-requests python3-etcd python3-consul)
skipping: [10.10.10.11] => (item=pgbouncer patroni pg_exporter pgbadger)
skipping: [10.10.10.12] => (item=postgresql${pg_version}*)
skipping: [10.10.10.10] => (item=python36-urllib3 python36-idna python36-pyOpenSSL python36-cryptography)
skipping: [10.10.10.11] => (item=patroni patroni-consul patroni-etcd pgbouncer pgbadger pg_activity)
skipping: [10.10.10.12] => (item=postgis31_${pg_version}*)
skipping: [10.10.10.11] => (item=python3 python3-psycopg2 python36-requests python3-etcd python3-consul)
skipping: [10.10.10.12] => (item=pgbouncer patroni pg_exporter pgbadger)
skipping: [10.10.10.13] => (item=postgresql${pg_version}*)
skipping: [10.10.10.11] => (item=python36-urllib3 python36-idna python36-pyOpenSSL python36-cryptography)
skipping: [10.10.10.12] => (item=patroni patroni-consul patroni-etcd pgbouncer pgbadger pg_activity)
skipping: [10.10.10.13] => (item=postgis31_${pg_version}*)
skipping: [10.10.10.12] => (item=python3 python3-psycopg2 python36-requests python3-etcd python3-consul)
skipping: [10.10.10.13] => (item=pgbouncer patroni pg_exporter pgbadger)
skipping: [10.10.10.12] => (item=python36-urllib3 python36-idna python36-pyOpenSSL python36-cryptography)
skipping: [10.10.10.13] => (item=patroni patroni-consul patroni-etcd pgbouncer pgbadger pg_activity)
skipping: [10.10.10.13] => (item=python3 python3-psycopg2 python36-requests python3-etcd python3-consul)
skipping: [10.10.10.13] => (item=python36-urllib3 python36-idna python36-pyOpenSSL python36-cryptography)
TASK [postgres : Install pg packages] *********************************************************************************************************************************************
changed: [10.10.10.10] => (item=['postgresql13*', 'postgis31_13*', 'pgbouncer,patroni,pg_exporter,pgbadger', 'patroni,patroni-consul,patroni-etcd,pgbouncer,pgbadger,pg_activity', 'python3,python3-psycopg2,python36-requests,python3-etcd,python3-consul', 'python36-urllib3,python36-idna,python36-pyOpenSSL,python36-cryptography'])
changed: [10.10.10.13] => (item=['postgresql13*', 'postgis31_13*', 'pgbouncer,patroni,pg_exporter,pgbadger', 'patroni,patroni-consul,patroni-etcd,pgbouncer,pgbadger,pg_activity', 'python3,python3-psycopg2,python36-requests,python3-etcd,python3-consul', 'python36-urllib3,python36-idna,python36-pyOpenSSL,python36-cryptography'])
changed: [10.10.10.11] => (item=['postgresql13*', 'postgis31_13*', 'pgbouncer,patroni,pg_exporter,pgbadger', 'patroni,patroni-consul,patroni-etcd,pgbouncer,pgbadger,pg_activity', 'python3,python3-psycopg2,python36-requests,python3-etcd,python3-consul', 'python36-urllib3,python36-idna,python36-pyOpenSSL,python36-cryptography'])
changed: [10.10.10.12] => (item=['postgresql13*', 'postgis31_13*', 'pgbouncer,patroni,pg_exporter,pgbadger', 'patroni,patroni-consul,patroni-etcd,pgbouncer,pgbadger,pg_activity', 'python3,python3-psycopg2,python36-requests,python3-etcd,python3-consul', 'python36-urllib3,python36-idna,python36-pyOpenSSL,python36-cryptography'])
TASK [postgres : Install pg extensions] *******************************************************************************************************************************************
changed: [10.10.10.10] => (item=['pg_repack13,pg_qualstats13,pg_stat_kcache13,wal2json13'])
changed: [10.10.10.11] => (item=['pg_repack13,pg_qualstats13,pg_stat_kcache13,wal2json13'])
changed: [10.10.10.12] => (item=['pg_repack13,pg_qualstats13,pg_stat_kcache13,wal2json13'])
changed: [10.10.10.13] => (item=['pg_repack13,pg_qualstats13,pg_stat_kcache13,wal2json13'])
TASK [postgres : Link /usr/pgsql to current version] ******************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Add pg bin dir to profile path] **********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
TASK [postgres : Fix directory ownership] *****************************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [Remove default postgres service] ********************************************************************************************************************************************
[WARNING]: Consider using the file module with state=absent rather than running 'rm'. If you need to use command because file is insufficient you can add 'warn: false' to this
command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Check necessary variables exists] ********************************************************************************************************************************
ok: [10.10.10.10] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [10.10.10.11] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [10.10.10.12] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [10.10.10.13] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [postgres : Fetch variables via pg_cluster] **********************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [postgres : Set cluster basic facts for hosts] *******************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [postgres : Assert cluster primary singleton] ********************************************************************************************************************************
ok: [10.10.10.10] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [10.10.10.11] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [10.10.10.12] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [10.10.10.13] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [postgres : Setup cluster primary ip address] ********************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [postgres : Setup repl upstream for primary] *********************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [postgres : Setup repl upstream for replicas] ********************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [postgres : Debug print instance summary] ************************************************************************************************************************************
ok: [10.10.10.10] => {
"msg": "cluster=pg-meta service=pg-meta-primary instance=pg-meta-1 replication=[primary:itself]->10.10.10.10"
}
ok: [10.10.10.11] => {
"msg": "cluster=pg-test service=pg-test-primary instance=pg-test-1 replication=[primary:itself]->10.10.10.11"
}
ok: [10.10.10.12] => {
"msg": "cluster=pg-test service=pg-test-replica instance=pg-test-2 replication=[primary:itself]->10.10.10.12"
}
ok: [10.10.10.13] => {
"msg": "cluster=pg-test service=pg-test-replica instance=pg-test-3 replication=[primary:itself]->10.10.10.13"
}
TASK [Check for existing postgres instance] ***************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
TASK [postgres : Set fact whether pg port is open] ********************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [Abort due to existing postgres instance] ************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Clean existing postgres instance] *******************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Shutdown existing postgres service] *****************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Remove registerd consul service] *********************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.13]
TASK [Remove postgres metadata in consul] *****************************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.11]
changed: [10.10.10.10]
TASK [Remove existing postgres data] **********************************************************************************************************************************************
ok: [10.10.10.10] => (item=/pg)
ok: [10.10.10.11] => (item=/pg)
ok: [10.10.10.12] => (item=/pg)
ok: [10.10.10.13] => (item=/pg)
ok: [10.10.10.10] => (item=/export/postgres)
ok: [10.10.10.11] => (item=/export/postgres)
ok: [10.10.10.12] => (item=/export/postgres)
ok: [10.10.10.13] => (item=/export/postgres)
ok: [10.10.10.10] => (item=/var/backups/postgres)
ok: [10.10.10.11] => (item=/var/backups/postgres)
ok: [10.10.10.12] => (item=/var/backups/postgres)
ok: [10.10.10.13] => (item=/var/backups/postgres)
changed: [10.10.10.10] => (item=/etc/pgbouncer)
changed: [10.10.10.11] => (item=/etc/pgbouncer)
changed: [10.10.10.12] => (item=/etc/pgbouncer)
changed: [10.10.10.13] => (item=/etc/pgbouncer)
changed: [10.10.10.10] => (item=/var/log/pgbouncer)
changed: [10.10.10.11] => (item=/var/log/pgbouncer)
changed: [10.10.10.12] => (item=/var/log/pgbouncer)
changed: [10.10.10.13] => (item=/var/log/pgbouncer)
changed: [10.10.10.10] => (item=/var/run/pgbouncer)
changed: [10.10.10.11] => (item=/var/run/pgbouncer)
changed: [10.10.10.12] => (item=/var/run/pgbouncer)
changed: [10.10.10.13] => (item=/var/run/pgbouncer)
TASK [postgres : Make sure main and backup dir exists] ****************************************************************************************************************************
changed: [10.10.10.11] => (item=/export)
changed: [10.10.10.10] => (item=/export)
changed: [10.10.10.12] => (item=/export)
changed: [10.10.10.13] => (item=/export)
changed: [10.10.10.10] => (item=/var/backups)
changed: [10.10.10.12] => (item=/var/backups)
changed: [10.10.10.13] => (item=/var/backups)
changed: [10.10.10.11] => (item=/var/backups)
TASK [Create postgres directory structure] ****************************************************************************************************************************************
changed: [10.10.10.10] => (item=/export/postgres)
changed: [10.10.10.11] => (item=/export/postgres)
changed: [10.10.10.12] => (item=/export/postgres)
changed: [10.10.10.13] => (item=/export/postgres)
changed: [10.10.10.10] => (item=/export/postgres/pg-meta-13)
changed: [10.10.10.11] => (item=/export/postgres/pg-test-13)
changed: [10.10.10.12] => (item=/export/postgres/pg-test-13)
changed: [10.10.10.13] => (item=/export/postgres/pg-test-13)
changed: [10.10.10.10] => (item=/export/postgres/pg-meta-13/bin)
changed: [10.10.10.11] => (item=/export/postgres/pg-test-13/bin)
changed: [10.10.10.12] => (item=/export/postgres/pg-test-13/bin)
changed: [10.10.10.13] => (item=/export/postgres/pg-test-13/bin)
changed: [10.10.10.10] => (item=/export/postgres/pg-meta-13/log)
changed: [10.10.10.11] => (item=/export/postgres/pg-test-13/log)
changed: [10.10.10.12] => (item=/export/postgres/pg-test-13/log)
changed: [10.10.10.13] => (item=/export/postgres/pg-test-13/log)
changed: [10.10.10.10] => (item=/export/postgres/pg-meta-13/tmp)
changed: [10.10.10.11] => (item=/export/postgres/pg-test-13/tmp)
changed: [10.10.10.12] => (item=/export/postgres/pg-test-13/tmp)
changed: [10.10.10.13] => (item=/export/postgres/pg-test-13/tmp)
changed: [10.10.10.10] => (item=/export/postgres/pg-meta-13/conf)
changed: [10.10.10.11] => (item=/export/postgres/pg-test-13/conf)
changed: [10.10.10.12] => (item=/export/postgres/pg-test-13/conf)
changed: [10.10.10.13] => (item=/export/postgres/pg-test-13/conf)
changed: [10.10.10.10] => (item=/export/postgres/pg-meta-13/data)
changed: [10.10.10.11] => (item=/export/postgres/pg-test-13/data)
changed: [10.10.10.12] => (item=/export/postgres/pg-test-13/data)
changed: [10.10.10.13] => (item=/export/postgres/pg-test-13/data)
changed: [10.10.10.10] => (item=/export/postgres/pg-meta-13/meta)
changed: [10.10.10.11] => (item=/export/postgres/pg-test-13/meta)
changed: [10.10.10.13] => (item=/export/postgres/pg-test-13/meta)
changed: [10.10.10.12] => (item=/export/postgres/pg-test-13/meta)
changed: [10.10.10.10] => (item=/export/postgres/pg-meta-13/stat)
changed: [10.10.10.11] => (item=/export/postgres/pg-test-13/stat)
changed: [10.10.10.13] => (item=/export/postgres/pg-test-13/stat)
changed: [10.10.10.12] => (item=/export/postgres/pg-test-13/stat)
changed: [10.10.10.10] => (item=/export/postgres/pg-meta-13/change)
changed: [10.10.10.11] => (item=/export/postgres/pg-test-13/change)
changed: [10.10.10.13] => (item=/export/postgres/pg-test-13/change)
changed: [10.10.10.12] => (item=/export/postgres/pg-test-13/change)
changed: [10.10.10.10] => (item=/var/backups/postgres/pg-meta-13/postgres)
changed: [10.10.10.11] => (item=/var/backups/postgres/pg-test-13/postgres)
changed: [10.10.10.13] => (item=/var/backups/postgres/pg-test-13/postgres)
changed: [10.10.10.12] => (item=/var/backups/postgres/pg-test-13/postgres)
changed: [10.10.10.10] => (item=/var/backups/postgres/pg-meta-13/arcwal)
changed: [10.10.10.11] => (item=/var/backups/postgres/pg-test-13/arcwal)
changed: [10.10.10.13] => (item=/var/backups/postgres/pg-test-13/arcwal)
changed: [10.10.10.12] => (item=/var/backups/postgres/pg-test-13/arcwal)
changed: [10.10.10.10] => (item=/var/backups/postgres/pg-meta-13/backup)
changed: [10.10.10.13] => (item=/var/backups/postgres/pg-test-13/backup)
changed: [10.10.10.11] => (item=/var/backups/postgres/pg-test-13/backup)
changed: [10.10.10.12] => (item=/var/backups/postgres/pg-test-13/backup)
changed: [10.10.10.10] => (item=/var/backups/postgres/pg-meta-13/remote)
changed: [10.10.10.11] => (item=/var/backups/postgres/pg-test-13/remote)
changed: [10.10.10.13] => (item=/var/backups/postgres/pg-test-13/remote)
changed: [10.10.10.12] => (item=/var/backups/postgres/pg-test-13/remote)
TASK [postgres : Create pgbouncer directory structure] ****************************************************************************************************************************
changed: [10.10.10.11] => (item=/etc/pgbouncer)
changed: [10.10.10.10] => (item=/etc/pgbouncer)
changed: [10.10.10.12] => (item=/etc/pgbouncer)
changed: [10.10.10.13] => (item=/etc/pgbouncer)
changed: [10.10.10.11] => (item=/var/log/pgbouncer)
changed: [10.10.10.10] => (item=/var/log/pgbouncer)
changed: [10.10.10.12] => (item=/var/log/pgbouncer)
changed: [10.10.10.13] => (item=/var/log/pgbouncer)
changed: [10.10.10.10] => (item=/var/run/pgbouncer)
changed: [10.10.10.11] => (item=/var/run/pgbouncer)
changed: [10.10.10.12] => (item=/var/run/pgbouncer)
changed: [10.10.10.13] => (item=/var/run/pgbouncer)
TASK [postgres : Create links from pgbkup to pgroot] ******************************************************************************************************************************
changed: [10.10.10.10] => (item=arcwal)
changed: [10.10.10.11] => (item=arcwal)
changed: [10.10.10.12] => (item=arcwal)
changed: [10.10.10.13] => (item=arcwal)
changed: [10.10.10.10] => (item=backup)
changed: [10.10.10.11] => (item=backup)
changed: [10.10.10.12] => (item=backup)
changed: [10.10.10.13] => (item=backup)
changed: [10.10.10.10] => (item=remote)
changed: [10.10.10.11] => (item=remote)
changed: [10.10.10.12] => (item=remote)
changed: [10.10.10.13] => (item=remote)
TASK [postgres : Create links from current cluster] *******************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Copy pg_cluster to /pg/meta/cluster] *****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Copy pg_version to /pg/meta/version] *****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Copy pg_instance to /pg/meta/instance] ***************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Copy pg_seq to /pg/meta/sequence] ********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Copy pg_role to /pg/meta/role] ***********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [Copy postgres scripts to /pg/bin/] ******************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.13]
changed: [10.10.10.11]
changed: [10.10.10.12]
TASK [postgres : Copy alias profile to /etc/profile.d] ****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [Copy psqlrc to postgres home] ***********************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Setup hostname to pg instance name] ******************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [postgres : Copy consul node-meta definition] ********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Restart consul to load new node-meta] ****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.13]
changed: [10.10.10.11]
changed: [10.10.10.12]
TASK [postgres : Config patroni watchdog support] *********************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [postgres : Get config parameter page count] *********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
TASK [postgres : Get config parameter page size] **********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Tune shared buffer and work mem] *********************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [postgres : Hanlde small size mem occasion] **********************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [Calculate postgres mem params] **********************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [postgres : create patroni config dir] ***************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : use predefined patroni template] *********************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [postgres : Render default /pg/conf/patroni.yml] *****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Link /pg/conf/patroni to /pg/bin/] *******************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Link /pg/bin/patroni.yml to /etc/patroni/] ***********************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Config patroni watchdog support] *********************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [postgres : create patroni systemd drop-in dir] ******************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [Copy postgres systemd service file] *****************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.11]
changed: [10.10.10.13]
TASK [postgres : create patroni systemd drop-in file] *****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Render default initdb scripts] ***********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Launch patroni on primary instance] ******************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [postgres : Wait for patroni primary online] *********************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
ok: [10.10.10.11]
ok: [10.10.10.10]
TASK [Wait for postgres primary online] *******************************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
ok: [10.10.10.10]
ok: [10.10.10.11]
TASK [Check primary postgres service ready] ***************************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
[WARNING]: Module remote_tmp /var/lib/pgsql/.ansible/tmp did not exist and was created with a mode of 0700, this may cause issues when running as another user. To avoid this,
create the remote_tmp dir with the correct permissions manually
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [postgres : Check replication connectivity to primary] ***********************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [postgres : Render default pg-init scripts] **********************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [postgres : Render template init script] *************************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [postgres : Execute initialization scripts] **********************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.11]
changed: [10.10.10.10]
TASK [postgres : Check primary instance ready] ************************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [postgres : Add dbsu password to pgpass if exists] ***************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [postgres : Add system user to pgpass] ***************************************************************************************************************************************
changed: [10.10.10.10] => (item={'username': 'replicator', 'password': 'DBUser.Replicator'})
changed: [10.10.10.11] => (item={'username': 'replicator', 'password': 'DBUser.Replicator'})
changed: [10.10.10.12] => (item={'username': 'replicator', 'password': 'DBUser.Replicator'})
changed: [10.10.10.13] => (item={'username': 'replicator', 'password': 'DBUser.Replicator'})
changed: [10.10.10.11] => (item={'username': 'dbuser_monitor', 'password': 'DBUser.Monitor'})
changed: [10.10.10.12] => (item={'username': 'dbuser_monitor', 'password': 'DBUser.Monitor'})
changed: [10.10.10.10] => (item={'username': 'dbuser_monitor', 'password': 'DBUser.Monitor'})
changed: [10.10.10.13] => (item={'username': 'dbuser_monitor', 'password': 'DBUser.Monitor'})
changed: [10.10.10.12] => (item={'username': 'dbuser_admin', 'password': 'DBUser.Admin'})
changed: [10.10.10.11] => (item={'username': 'dbuser_admin', 'password': 'DBUser.Admin'})
changed: [10.10.10.13] => (item={'username': 'dbuser_admin', 'password': 'DBUser.Admin'})
changed: [10.10.10.10] => (item={'username': 'dbuser_admin', 'password': 'DBUser.Admin'})
TASK [postgres : Check replication connectivity to primary] ***********************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Launch patroni on replica instances] *****************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Wait for patroni replica online] *********************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
ok: [10.10.10.13]
ok: [10.10.10.12]
TASK [Wait for postgres replica online] *******************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [Check replica postgres service ready] ***************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Render hba rules] ************************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.11]
TASK [postgres : Reload hba rules] ************************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Pause patroni] ***************************************************************************************************************************************************
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.10]
TASK [postgres : Stop patroni on replica instance] ********************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [postgres : Stop patroni on primary instance] ********************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Launch raw postgres on primary] *********************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Launch raw postgres on primary] *********************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [Wait for postgres online] ***************************************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [postgres : Check pgbouncer is installed] ************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Stop existing pgbouncer service] *********************************************************************************************************************************
ok: [10.10.10.12]
ok: [10.10.10.13]
ok: [10.10.10.10]
ok: [10.10.10.11]
TASK [postgres : Remove existing pgbouncer dirs] **********************************************************************************************************************************
changed: [10.10.10.10] => (item=/etc/pgbouncer)
changed: [10.10.10.11] => (item=/etc/pgbouncer)
changed: [10.10.10.12] => (item=/etc/pgbouncer)
changed: [10.10.10.13] => (item=/etc/pgbouncer)
changed: [10.10.10.10] => (item=/var/log/pgbouncer)
changed: [10.10.10.11] => (item=/var/log/pgbouncer)
changed: [10.10.10.12] => (item=/var/log/pgbouncer)
changed: [10.10.10.13] => (item=/var/log/pgbouncer)
changed: [10.10.10.10] => (item=/var/run/pgbouncer)
changed: [10.10.10.11] => (item=/var/run/pgbouncer)
changed: [10.10.10.12] => (item=/var/run/pgbouncer)
changed: [10.10.10.13] => (item=/var/run/pgbouncer)
TASK [Recreate dirs with owner postgres] ******************************************************************************************************************************************
changed: [10.10.10.10] => (item=/etc/pgbouncer)
changed: [10.10.10.11] => (item=/etc/pgbouncer)
changed: [10.10.10.12] => (item=/etc/pgbouncer)
changed: [10.10.10.13] => (item=/etc/pgbouncer)
changed: [10.10.10.10] => (item=/var/log/pgbouncer)
changed: [10.10.10.11] => (item=/var/log/pgbouncer)
changed: [10.10.10.12] => (item=/var/log/pgbouncer)
changed: [10.10.10.13] => (item=/var/log/pgbouncer)
changed: [10.10.10.10] => (item=/var/run/pgbouncer)
changed: [10.10.10.11] => (item=/var/run/pgbouncer)
changed: [10.10.10.12] => (item=/var/run/pgbouncer)
changed: [10.10.10.13] => (item=/var/run/pgbouncer)
TASK [postgres : Copy /etc/pgbouncer/pgbouncer.ini] *******************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Copy /etc/pgbouncer/pgb_hba.conf] ********************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Touch userlist and database list] ********************************************************************************************************************************
changed: [10.10.10.10] => (item=database.txt)
changed: [10.10.10.11] => (item=database.txt)
changed: [10.10.10.12] => (item=database.txt)
changed: [10.10.10.13] => (item=database.txt)
changed: [10.10.10.10] => (item=userlist.txt)
changed: [10.10.10.11] => (item=userlist.txt)
changed: [10.10.10.12] => (item=userlist.txt)
changed: [10.10.10.13] => (item=userlist.txt)
TASK [postgres : Add default users to pgbouncer] **********************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Copy pgbouncer systemd service] **********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Launch pgbouncer pool service] ***********************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.11]
changed: [10.10.10.10]
TASK [postgres : Wait for pgbouncer service online] *******************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [postgres : Check pgbouncer service is ready] ********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Render business init script] *************************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [postgres : Render database baseline sql] ************************************************************************************************************************************
skipping: [10.10.10.10] => (item={'name': 'meta', 'schemas': ['meta'], 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public, monitor'}})
skipping: [10.10.10.11] => (item={'name': 'test', 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public,monitor'}})
skipping: [10.10.10.12] => (item={'name': 'test', 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public,monitor'}})
skipping: [10.10.10.13] => (item={'name': 'test', 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public,monitor'}})
TASK [postgres : Execute business init script] ************************************************************************************************************************************
skipping: [10.10.10.12]
skipping: [10.10.10.13]
changed: [10.10.10.10]
changed: [10.10.10.11]
TASK [postgres : Execute database baseline sql] ***********************************************************************************************************************************
skipping: [10.10.10.10] => (item={'name': 'meta', 'schemas': ['meta'], 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public, monitor'}})
skipping: [10.10.10.11] => (item={'name': 'test', 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public,monitor'}})
skipping: [10.10.10.12] => (item={'name': 'test', 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public,monitor'}})
skipping: [10.10.10.13] => (item={'name': 'test', 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public,monitor'}})
TASK [postgres : Add pgbouncer busniess users] ************************************************************************************************************************************
changed: [10.10.10.10] => (item={'username': 'dbuser_meta', 'password': 'DBUser.Meta', 'groups': ['dbrole_readwrite']})
changed: [10.10.10.12] => (item={'username': 'test', 'password': 'test', 'comment': 'default test user', 'groups': ['dbrole_readwrite']})
changed: [10.10.10.11] => (item={'username': 'test', 'password': 'test', 'comment': 'default test user', 'groups': ['dbrole_readwrite']})
changed: [10.10.10.13] => (item={'username': 'test', 'password': 'test', 'comment': 'default test user', 'groups': ['dbrole_readwrite']})
TASK [postgres : Add pgbouncer busniess database] *********************************************************************************************************************************
changed: [10.10.10.11] => (item={'name': 'test', 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public,monitor'}})
changed: [10.10.10.10] => (item={'name': 'meta', 'schemas': ['meta'], 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public, monitor'}})
changed: [10.10.10.12] => (item={'name': 'test', 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public,monitor'}})
changed: [10.10.10.13] => (item={'name': 'test', 'extensions': [{'name': 'postgis'}], 'parameters': {'search_path': 'public,monitor'}})
TASK [postgres : Restart pgbouncer] ***********************************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.11]
changed: [10.10.10.10]
TASK [Copy postgres service definition] *******************************************************************************************************************************************
changed: [10.10.10.10] => (item=postgres)
changed: [10.10.10.12] => (item=postgres)
changed: [10.10.10.11] => (item=postgres)
changed: [10.10.10.13] => (item=postgres)
changed: [10.10.10.10] => (item=pgbouncer)
changed: [10.10.10.11] => (item=pgbouncer)
changed: [10.10.10.12] => (item=pgbouncer)
changed: [10.10.10.13] => (item=pgbouncer)
changed: [10.10.10.10] => (item=patroni)
changed: [10.10.10.12] => (item=patroni)
changed: [10.10.10.13] => (item=patroni)
changed: [10.10.10.11] => (item=patroni)
TASK [postgres : Reload consul service] *******************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.10]
TASK [postgres : Render grafana datasource definition] ****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [postgres : Register datasource to grafana] **********************************************************************************************************************************
[WARNING]: Consider using the get_url or uri module rather than running 'curl'. If you need to use command because get_url or uri is insufficient you can add 'warn: false' to
this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [monitor : Create /etc/pg_exporter conf dir] *********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [monitor : Copy default pg_exporter.yaml] ************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.11]
TASK [monitor : Config /etc/default/pg_exporter] **********************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.13]
TASK [monitor : Config pg_exporter service unit] **********************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.13]
TASK [monitor : Launch pg_exporter systemd service] *******************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [monitor : Wait for pg_exporter service online] ******************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.12]
ok: [10.10.10.13]
ok: [10.10.10.11]
TASK [monitor : Register pg-exporter consul service] ******************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [monitor : Reload pg-exporter consul service] ********************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.10]
TASK [monitor : Config pgbouncer_exporter opts] ***********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [monitor : Config pgbouncer_exporter service] ********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [monitor : Launch pgbouncer_exporter service] ********************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.12]
changed: [10.10.10.10]
TASK [monitor : Wait for pgbouncer_exporter online] *******************************************************************************************************************************
ok: [10.10.10.11]
ok: [10.10.10.10]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [monitor : Register pgb-exporter consul service] *****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [monitor : Reload pgb-exporter consul service] *******************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.13]
changed: [10.10.10.10]
changed: [10.10.10.12]
TASK [monitor : Copy node_exporter systemd service] *******************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.13]
changed: [10.10.10.12]
changed: [10.10.10.11]
TASK [monitor : Config default node_exporter options] *****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.11]
changed: [10.10.10.13]
TASK [monitor : Launch node_exporter service unit] ********************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.13]
changed: [10.10.10.11]
TASK [monitor : Wait for node_exporter online] ************************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.13]
ok: [10.10.10.12]
TASK [monitor : Register node-exporter service] ***********************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.12]
changed: [10.10.10.13]
TASK [monitor : Reload node-exporter consul service] ******************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.13]
changed: [10.10.10.12]
TASK [proxy : Templating /etc/default/vip-manager.yml] ****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.11]
changed: [10.10.10.13]
TASK [proxy : create vip-manager. systemd drop-in dir] ****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.11]
TASK [proxy : create vip-manager systemd drop-in file] ****************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.11]
TASK [proxy : Launch vip-manager] *************************************************************************************************************************************************
changed: [10.10.10.10]
changed: [10.10.10.12]
changed: [10.10.10.13]
changed: [10.10.10.11]
TASK [proxy : Set pg_instance in case of absence] *********************************************************************************************************************************
skipping: [10.10.10.10]
skipping: [10.10.10.11]
skipping: [10.10.10.12]
skipping: [10.10.10.13]
TASK [proxy : Fetch postgres cluster memberships] *********************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [Templating /etc/haproxyhaproxy.cfg] *****************************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.13]
TASK [Copy haproxy systemd service file] ******************************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.11]
changed: [10.10.10.13]
TASK [Launch haproxy load balancer service] ***************************************************************************************************************************************
changed: [10.10.10.12]
changed: [10.10.10.10]
changed: [10.10.10.13]
changed: [10.10.10.11]
TASK [Wait for haproxy load balancer online] **************************************************************************************************************************************
ok: [10.10.10.10]
ok: [10.10.10.11]
ok: [10.10.10.12]
ok: [10.10.10.13]
TASK [Copy haproxy service definition] ********************************************************************************************************************************************
changed: [10.10.10.10] => (item=haproxy)
changed: [10.10.10.12] => (item=haproxy)
changed: [10.10.10.13] => (item=haproxy)
changed: [10.10.10.11] => (item=haproxy)
changed: [10.10.10.12] => (item=cluster-primary)
changed: [10.10.10.13] => (item=cluster-primary)
changed: [10.10.10.10] => (item=cluster-primary)
changed: [10.10.10.11] => (item=cluster-primary)
changed: [10.10.10.10] => (item=cluster-replica)
changed: [10.10.10.13] => (item=cluster-replica)
changed: [10.10.10.12] => (item=cluster-replica)
changed: [10.10.10.11] => (item=cluster-replica)
TASK [Reload haproxy consul service] **********************************************************************************************************************************************
changed: [10.10.10.11]
changed: [10.10.10.10]
changed: [10.10.10.13]
changed: [10.10.10.12]
PLAY RECAP ************************************************************************************************************************************************************************
10.10.10.10 : ok=119 changed=97 unreachable=0 failed=0 skipped=25 rescued=0 ignored=0
10.10.10.11 : ok=118 changed=96 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0
10.10.10.12 : ok=112 changed=89 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0
10.10.10.13 : ok=112 changed=89 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0
Last modified 2021-01-10: update en docs (9c05029)