· 6 years ago · Apr 03, 2019, 11:42 AM
1Using /etc/ansible/ansible.cfg as config file
2
3PLAY ***************************************************************************
4
5TASK [setup] *******************************************************************
6ok: [localhost]
7
8TASK [e-identification-crl-updater : Add crl group] ****************************
9ok: [localhost] => {"changed": false, "gid": 997, "name": "crl", "state": "present", "system": true}
10
11TASK [e-identification-crl-updater : Add crl user] *****************************
12ok: [localhost] => {"append": false, "changed": false, "comment": "VRK CRL Updater", "group": 997, "home": "/data/crls", "move_home": false, "name": "crl", "shell": "/usr/bin/bash", "state": "present", "uid": 1001}
13
14TASK [e-identification-crl-updater : Add /data/crls directory] *****************
15ok: [localhost] => {"changed": false, "gid": 997, "group": "crl", "mode": "0775", "owner": "root", "path": "/data/crls", "size": 4096, "state": "directory", "uid": 0}
16
17TASK [e-identification-crl-updater : Add /data/crls-backup directory] **********
18ok: [localhost] => {"changed": false, "gid": 997, "group": "crl", "mode": "0775", "owner": "root", "path": "/data/crls-backup", "size": 4096, "state": "directory", "uid": 0}
19
20TASK [e-identification-crl-updater : Add /data/crl-updater directory] **********
21ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/data/crl-updater", "size": 4096, "state": "directory", "uid": 0}
22
23TASK [e-identification-crl-updater : Add /data/crl-updater/tmp directory] ******
24ok: [localhost] => {"changed": false, "gid": 997, "group": "crl", "mode": "0775", "owner": "root", "path": "/data/crl-updater/tmp", "size": 4096, "state": "directory", "uid": 0}
25
26TASK [e-identification-crl-updater : Add /data/logs/crl-updater directory] *****
27ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/data/logs/crl-updater", "size": 4096, "state": "directory", "uid": 0}
28
29TASK [e-identification-crl-updater : touch /data/logs/crl-updater/crl-updater.log file] ***
30changed: [localhost] => {"changed": true, "dest": "/data/logs/crl-updater/crl-updater.log", "gid": 997, "group": "crl", "mode": "0664", "owner": "root", "size": 130153, "state": "file", "uid": 0}
31
32TASK [e-identification-crl-updater : Copy renew.sh file] ***********************
33ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/data/crl-updater/renew.sh", "size": 7175, "state": "file", "uid": 0}
34
35TASK [e-identification-crl-updater : Copy renew.conf file (production environment)] ***
36skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
37
38TASK [e-identification-crl-updater : Copy renew.conf file (all test environments)] ***
39ok: [localhost] => {"changed": false, "checksum": "9ee97fb82a1f0a21c410725cb5f262fbf506bed5", "dest": "/data/crl-updater/renew.conf", "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/data/crl-updater/renew.conf", "size": 557, "state": "file", "uid": 0}
40
41TASK [e-identification-crl-updater : Copy renew.conf file (override prod)] *****
42skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
43
44TASK [e-identification-crl-updater : Copy renew.conf file (override test)] *****
45skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
46
47TASK [e-identification-crl-updater : Remove old cronjob file from previous version (if exists)] ***
48ok: [localhost] => {"changed": false, "cron_file": "VRK-CRL-Updater", "jobs": ["VRK CRL Updater (10 minutes schedule)"]}
49
50TASK [e-identification-crl-updater : Creates/updates cronjob for renew.sh] *****
51ok: [localhost] => {"changed": false, "cron_file": "VRK-CRL-Updater", "jobs": ["VRK CRL Updater (10 minutes schedule)"]}
52
53TASK [e-identification-crl-updater : Add logrotate script for log file] ********
54ok: [localhost] => {"changed": false, "checksum": "7305ea19d454e54c5ece8661c69de168986856d1", "dest": "/etc/logrotate.d/crl-renew", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/logrotate.d/crl-renew", "size": 271, "state": "file", "uid": 0}
55
56PLAY ***************************************************************************
57
58TASK [setup] *******************************************************************
59ok: [localhost]
60
61TASK [e-identification-clear-cache : Check if nginx cache directory exists] ****
62ok: [localhost] => {"changed": false, "stat": {"atime": 1554289070.34, "ctime": 1554290189.8, "dev": 64512, "exists": true, "gid": 0, "gr_name": "root", "inode": 542511, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1554290189.8, "nlink": 2, "path": "/home/otto/build/deploy/external-router/nginx_cache/", "pw_name": "systemd-network", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 101, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
63
64TASK [e-identification-clear-cache : Remove cache files] ***********************
65changed: [localhost] => {"changed": true, "cmd": "find /home/otto/build/deploy/external-router/nginx_cache/ -type f -delete", "delta": "0:00:00.007171", "end": "2019-04-03 14:31:36.793623", "rc": 0, "start": "2019-04-03 14:31:36.786452", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
66
67PLAY ***************************************************************************
68
69TASK [setup] *******************************************************************
70ok: [localhost]
71
72TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-static:local] ***
73skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
74
75TASK [e-identification-deploy : Create local tempdir] **************************
76changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.005218", "end": "2019-04-03 14:31:38.023351", "rc": 0, "start": "2019-04-03 14:31:38.018133", "stderr": "", "stdout": "/tmp/deployADa6NG", "stdout_lines": ["/tmp/deployADa6NG"], "warnings": []}
77
78TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
79changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deployADa6NG\n mkdir /tmp/deployADa6NG/filled\n echo 2019-04-03T11:31:37Z| tee /tmp/deployADa6NG/filled/git-info\n echo Config: | tee -a /tmp/deployADa6NG/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deployADa6NG/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deployADa6NG/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deployADa6NG/filled/git-info", "delta": "0:00:00.034887", "end": "2019-04-03 14:31:38.299640", "rc": 0, "start": "2019-04-03 14:31:38.264753", "stderr": "", "stdout": "2019-04-03T11:31:37Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:31:37Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
80
81TASK [e-identification-deploy : Get templates from container to host] **********
82changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/static/\n mkdir -p /home/otto/build/deploy/logs/static/\n mkdir -p /tmp/deployADa6NG\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deployADa6NG:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-static:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:01.047195", "end": "2019-04-03 14:31:39.539923", "rc": 0, "start": "2019-04-03 14:31:38.492728", "stderr": "", "stdout": "./\n./config.js\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./nginx-static.conf.template", "stdout_lines": ["./", "./config.js", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./nginx-static.conf.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
83
84TASK [e-identification-deploy : Fetch template tarball] ************************
85ok: [localhost] => {"changed": false, "checksum": "3b64c4953ac8a53bd0bc764357fe1b29a08d712b", "dest": "/tmp/deployADa6NG/templates.tgz", "file": "/tmp/deployADa6NG/templates.tgz", "md5sum": "918074ad8d823576ee7811fb3fbae191"}
86
87TASK [e-identification-deploy : Fill templates] ********************************
88changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deployADa6NG/ -zxf /tmp/deployADa6NG/templates.tgz\n mkdir -p /tmp/deployADa6NG/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deployADa6NG/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/static.yml /tmp/deployADa6NG/ansible/group_vars/all\n ansible-playbook /tmp/deployADa6NG/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deployADa6NG -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/static.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/static/ -e host=tun-pub-cache1 ", "delta": "0:00:03.427936", "end": "2019-04-03 14:31:43.451298", "rc": 0, "start": "2019-04-03 14:31:40.023362", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Create necessary directories] *******************************\nchanged: [localhost] => (item=/tmp/deployADa6NG/filled)\nchanged: [localhost] => (item=/tmp/deployADa6NG/filled/ssl)\nchanged: [localhost] => (item=/tmp/deployADa6NG/filled/metadata)\nchanged: [localhost] => (item=/tmp/deployADa6NG/filled/nginx)\nchanged: [localhost] => (item=/tmp/deployADa6NG/filled/resources/js)\n\nTASK [create_tar : Template config.js file] ************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy ssl certificate] ***************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy ssl key] ***********************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy ca certificate] ****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy service-idp-metadata.xml] ******************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Middleware Metadata / mw_de-metadata.xml] **************\nchanged: [localhost]\n\nTASK [create_tar : Copy core SP metadata] **************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy core IDP metadata] *************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy disruption message] ************************************\nchanged: [localhost]\n\nTASK [create_tar : Template nginx conf] ****************************************\nchanged: [localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=13 changed=12 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Create necessary directories] *******************************", "changed: [localhost] => (item=/tmp/deployADa6NG/filled)", "changed: [localhost] => (item=/tmp/deployADa6NG/filled/ssl)", "changed: [localhost] => (item=/tmp/deployADa6NG/filled/metadata)", "changed: [localhost] => (item=/tmp/deployADa6NG/filled/nginx)", "changed: [localhost] => (item=/tmp/deployADa6NG/filled/resources/js)", "", "TASK [create_tar : Template config.js file] ************************************", "changed: [localhost]", "", "TASK [create_tar : Copy ssl certificate] ***************************************", "changed: [localhost]", "", "TASK [create_tar : Copy ssl key] ***********************************************", "changed: [localhost]", "", "TASK [create_tar : Copy ca certificate] ****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy service-idp-metadata.xml] ******************************", "changed: [localhost]", "", "TASK [create_tar : Copy Middleware Metadata / mw_de-metadata.xml] **************", "changed: [localhost]", "", "TASK [create_tar : Copy core SP metadata] **************************************", "changed: [localhost]", "", "TASK [create_tar : Copy core IDP metadata] *************************************", "changed: [localhost]", "", "TASK [create_tar : Copy disruption message] ************************************", "changed: [localhost]", "", "TASK [create_tar : Template nginx conf] ****************************************", "changed: [localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=13 changed=12 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
89
90TASK [e-identification-deploy : Copy filled templates] *************************
91changed: [localhost] => {"changed": true, "checksum": "e31da661f0e84a3d67cb51197c1555ea5c472b57", "dest": "/home/otto/build/deploy/static/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "cac927a24cb4022815961401fb120278", "mode": "0644", "owner": "root", "size": 10513, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291103.61-266917516830062/source", "state": "file", "uid": 0}
92
93TASK [e-identification-deploy : Delete tempdir] ********************************
94changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deployADa6NG", "state": "absent"}
95
96TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
97changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/static/ -zxf /home/otto/build/deploy/static//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/static//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-static:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/static//git-info\n rm -rf /tmp/deployADa6NG", "delta": "0:00:00.052147", "end": "2019-04-03 14:31:44.165262", "rc": 0, "start": "2019-04-03 14:31:44.113115", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
98
99TASK [e-identification-deploy : Set access rights] *****************************
100changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/static/", "size": 4096, "state": "directory", "uid": 0}
101
102TASK [e-identification-deploy : Set directory access rights] *******************
103changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/static/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.014016", "end": "2019-04-03 14:31:44.549010", "rc": 0, "start": "2019-04-03 14:31:44.534994", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
104
105TASK [e-identification-deploy : Run new docker image] **************************
106changed: [localhost] => {"changed": true, "cmd": "docker stop e-identification-static-container | cat # pipecat igrores errors\n docker rm e-identification-static-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8036:443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=e-identification-static-container -v /home/otto/build/deploy/static/:/data00/deploy:z -v /home/otto/build/deploy/static//nginx:/etc/nginx/conf.d:z -v /home/otto/build/deploy/static//ssl:/etc/nginx/ssl:z -v /home/otto/build/deploy/static//metadata:/usr/share/nginx/html/metadata:z -v /home/otto/build/deploy/logs/static/:/var/log/nginx:z -v /home/otto/build/deploy/static//git-info:/usr/share/nginx/html/version.txt:z -v /home/otto/build/deploy/static//disruption_message.json:/usr/share/nginx/html/resources/js/disruption_data/disruption_message.json:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-static:local", "delta": "0:00:10.919576", "end": "2019-04-03 14:31:55.684139", "rc": 0, "start": "2019-04-03 14:31:44.764563", "stderr": "", "stdout": "e-identification-static-container\ne-identification-static-container\n34e45a50c21c635f8d9568325f598911e6a367dbebaca730364e7ea210e9f967", "stdout_lines": ["e-identification-static-container", "e-identification-static-container", "34e45a50c21c635f8d9568325f598911e6a367dbebaca730364e7ea210e9f967"], "warnings": []}
107
108PLAY ***************************************************************************
109
110TASK [setup] *******************************************************************
111ok: [localhost]
112
113TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-internal-router:local] ***
114skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
115
116TASK [e-identification-deploy : Create local tempdir] **************************
117changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.004587", "end": "2019-04-03 14:31:57.011123", "rc": 0, "start": "2019-04-03 14:31:57.006536", "stderr": "", "stdout": "/tmp/deploysBN8m5", "stdout_lines": ["/tmp/deploysBN8m5"], "warnings": []}
118
119TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
120changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deploysBN8m5\n mkdir /tmp/deploysBN8m5/filled\n echo 2019-04-03T11:31:56Z| tee /tmp/deploysBN8m5/filled/git-info\n echo Config: | tee -a /tmp/deploysBN8m5/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deploysBN8m5/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deploysBN8m5/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deploysBN8m5/filled/git-info", "delta": "0:00:00.010818", "end": "2019-04-03 14:31:57.244231", "rc": 0, "start": "2019-04-03 14:31:57.233413", "stderr": "", "stdout": "2019-04-03T11:31:56Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:31:56Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
121
122TASK [e-identification-deploy : Get templates from container to host] **********
123changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/internal-router/\n mkdir -p /home/otto/build/deploy/logs/e-identification-internal-router/\n mkdir -p /tmp/deploysBN8m5\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deploysBN8m5:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-internal-router:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.735834", "end": "2019-04-03 14:31:58.235426", "rc": 0, "start": "2019-04-03 14:31:57.499592", "stderr": "", "stdout": "./\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./nginx-int.conf.template", "stdout_lines": ["./", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./nginx-int.conf.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
124
125TASK [e-identification-deploy : Fetch template tarball] ************************
126ok: [localhost] => {"changed": false, "checksum": "3d4719bd47f91f239609961ccbcf5fdbb7560343", "dest": "/tmp/deploysBN8m5/templates.tgz", "file": "/tmp/deploysBN8m5/templates.tgz", "md5sum": "eca9cc99bab1ae7cde5d8eaabbf07688"}
127
128TASK [e-identification-deploy : Fill templates] ********************************
129changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deploysBN8m5/ -zxf /tmp/deploysBN8m5/templates.tgz\n mkdir -p /tmp/deploysBN8m5/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deploysBN8m5/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/internal-router.yml /tmp/deploysBN8m5/ansible/group_vars/all\n ansible-playbook /tmp/deploysBN8m5/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deploysBN8m5 -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/internal-router.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/internal-router/ -e host=tun-pub-cache1 ", "delta": "0:00:02.740508", "end": "2019-04-03 14:32:01.397529", "rc": 0, "start": "2019-04-03 14:31:58.657021", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Create necessary directories] *******************************\nchanged: [localhost] => (item=/tmp/deploysBN8m5/filled)\nchanged: [localhost] => (item=/tmp/deploysBN8m5/filled/ssl)\nchanged: [localhost] => (item=/tmp/deploysBN8m5/filled/nginx)\n\nTASK [create_tar : Copy ssl certificate] ***************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy ssl key] ***********************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy ca certificate] ****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy diffie-hellmann params] ********************************\nchanged: [localhost]\n\nTASK [create_tar : Template nginx conf] ****************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=8 changed=7 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Create necessary directories] *******************************", "changed: [localhost] => (item=/tmp/deploysBN8m5/filled)", "changed: [localhost] => (item=/tmp/deploysBN8m5/filled/ssl)", "changed: [localhost] => (item=/tmp/deploysBN8m5/filled/nginx)", "", "TASK [create_tar : Copy ssl certificate] ***************************************", "changed: [localhost]", "", "TASK [create_tar : Copy ssl key] ***********************************************", "changed: [localhost]", "", "TASK [create_tar : Copy ca certificate] ****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy diffie-hellmann params] ********************************", "changed: [localhost]", "", "TASK [create_tar : Template nginx conf] ****************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=8 changed=7 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
130
131TASK [e-identification-deploy : Copy filled templates] *************************
132changed: [localhost] => {"changed": true, "checksum": "3688b6b0ead530296a6cf762bd21e119cd8cf7b1", "dest": "/home/otto/build/deploy/internal-router/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "16c21865d832709f9a9430cb4b1fb85f", "mode": "0644", "owner": "root", "size": 5583, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291121.53-160156338401711/source", "state": "file", "uid": 0}
133
134TASK [e-identification-deploy : Delete tempdir] ********************************
135changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deploysBN8m5", "state": "absent"}
136
137TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
138changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/internal-router/ -zxf /home/otto/build/deploy/internal-router//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/internal-router//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-internal-router:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/internal-router//git-info\n rm -rf /tmp/deploysBN8m5", "delta": "0:00:00.044944", "end": "2019-04-03 14:32:02.002303", "rc": 0, "start": "2019-04-03 14:32:01.957359", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
139
140TASK [e-identification-deploy : Set access rights] *****************************
141changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/internal-router/", "size": 4096, "state": "directory", "uid": 0}
142
143TASK [e-identification-deploy : Set directory access rights] *******************
144changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/internal-router/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.007597", "end": "2019-04-03 14:32:02.412059", "rc": 0, "start": "2019-04-03 14:32:02.404462", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
145
146TASK [e-identification-deploy : Run new docker image] **************************
147changed: [localhost] => {"changed": true, "cmd": "docker stop e-identification-internal-router-container | cat # pipecat igrores errors\n docker rm e-identification-internal-router-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8037:443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=e-identification-internal-router-container -v /home/otto/build/deploy/internal-router//nginx:/etc/nginx/conf.d:z -v /home/otto/build/deploy/internal-router//ssl:/etc/nginx/ssl:z -v /home/otto/build/deploy/logs/e-identification-internal-router/:/var/log/nginx:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-internal-router:local", "delta": "0:00:00.872084", "end": "2019-04-03 14:32:03.491140", "rc": 0, "start": "2019-04-03 14:32:02.619056", "stderr": "", "stdout": "e-identification-internal-router-container\ne-identification-internal-router-container\n2680addf4093dc52c112d693d9d5d7450d5eecc010761f57f2e3a0db74b0be50", "stdout_lines": ["e-identification-internal-router-container", "e-identification-internal-router-container", "2680addf4093dc52c112d693d9d5d7450d5eecc010761f57f2e3a0db74b0be50"], "warnings": []}
148
149PLAY ***************************************************************************
150
151TASK [setup] *******************************************************************
152ok: [localhost]
153
154TASK [e-identification-check-dhparams : Check if apache dhparams exists] *******
155skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
156
157TASK [e-identification-check-dhparams : Creates directory if it doesn't exist] *
158skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
159
160TASK [e-identification-check-dhparams : Generate dhparams (This may take some time)] ***
161skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
162
163TASK [e-identification-check-dhparams : Set dhparams access rights] ************
164skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
165
166TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-external-router:local] ***
167skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
168
169TASK [e-identification-deploy : Create local tempdir] **************************
170changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.003607", "end": "2019-04-03 14:32:05.215978", "rc": 0, "start": "2019-04-03 14:32:05.212371", "stderr": "", "stdout": "/tmp/deployQHWemN", "stdout_lines": ["/tmp/deployQHWemN"], "warnings": []}
171
172TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
173changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deployQHWemN\n mkdir /tmp/deployQHWemN/filled\n echo 2019-04-03T11:32:04Z| tee /tmp/deployQHWemN/filled/git-info\n echo Config: | tee -a /tmp/deployQHWemN/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deployQHWemN/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deployQHWemN/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deployQHWemN/filled/git-info", "delta": "0:00:00.019782", "end": "2019-04-03 14:32:05.533485", "rc": 0, "start": "2019-04-03 14:32:05.513703", "stderr": "", "stdout": "2019-04-03T11:32:04Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:32:04Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
174
175TASK [e-identification-deploy : Get templates from container to host] **********
176changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/external-router/\n mkdir -p /home/otto/build/deploy/logs/e-identification-external-router/\n mkdir -p /tmp/deployQHWemN\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deployQHWemN:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-external-router:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.803316", "end": "2019-04-03 14:32:06.524606", "rc": 0, "start": "2019-04-03 14:32:05.721290", "stderr": "", "stdout": "./\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./nginx-ext.conf.template\n./nginx.conf.template", "stdout_lines": ["./", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./nginx-ext.conf.template", "./nginx.conf.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
177
178TASK [e-identification-deploy : Fetch template tarball] ************************
179ok: [localhost] => {"changed": false, "checksum": "5551dbac1849325af350bc3cdafaef13de62e42e", "dest": "/tmp/deployQHWemN/templates.tgz", "file": "/tmp/deployQHWemN/templates.tgz", "md5sum": "73aa936b4a430bf0fbb14bee79ab847e"}
180
181TASK [e-identification-deploy : Fill templates] ********************************
182changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deployQHWemN/ -zxf /tmp/deployQHWemN/templates.tgz\n mkdir -p /tmp/deployQHWemN/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deployQHWemN/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/external-router.yml /tmp/deployQHWemN/ansible/group_vars/all\n ansible-playbook /tmp/deployQHWemN/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deployQHWemN -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/external-router.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/external-router/ -e host=tunnistaminen.test ", "delta": "0:00:03.407287", "end": "2019-04-03 14:32:10.363201", "rc": 0, "start": "2019-04-03 14:32:06.955914", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Create necessary directories] *******************************\nchanged: [localhost] => (item=/tmp/deployQHWemN/filled)\nchanged: [localhost] => (item=/tmp/deployQHWemN/filled/nginx)\nchanged: [localhost] => (item=/tmp/deployQHWemN/filled/nginx_cache)\nchanged: [localhost] => (item=/tmp/deployQHWemN/filled/nginx/conf.d)\n\nTASK [create_tar : Create necessary directories] *******************************\nchanged: [localhost] => (item=/tmp/deployQHWemN/filled/html)\n\nTASK [create_tar : Copy public ssl cert and key] *******************************\nchanged: [localhost]\n\nTASK [create_tar : Copy public ssl cert and key] *******************************\nchanged: [localhost]\n\nTASK [create_tar : Copy ca certificate] ****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy diffie-hellmann params] ********************************\nchanged: [localhost]\n\nTASK [create_tar : Copy robots.txt] ********************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Template nginx-ext conf] ************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Template nginx conf] ****************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Template nginx local conf] **********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy log_format_configs.conf] *******************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=13 changed=12 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Create necessary directories] *******************************", "changed: [localhost] => (item=/tmp/deployQHWemN/filled)", "changed: [localhost] => (item=/tmp/deployQHWemN/filled/nginx)", "changed: [localhost] => (item=/tmp/deployQHWemN/filled/nginx_cache)", "changed: [localhost] => (item=/tmp/deployQHWemN/filled/nginx/conf.d)", "", "TASK [create_tar : Create necessary directories] *******************************", "changed: [localhost] => (item=/tmp/deployQHWemN/filled/html)", "", "TASK [create_tar : Copy public ssl cert and key] *******************************", "changed: [localhost]", "", "TASK [create_tar : Copy public ssl cert and key] *******************************", "changed: [localhost]", "", "TASK [create_tar : Copy ca certificate] ****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy diffie-hellmann params] ********************************", "changed: [localhost]", "", "TASK [create_tar : Copy robots.txt] ********************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Template nginx-ext conf] ************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Template nginx conf] ****************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Template nginx local conf] **********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy log_format_configs.conf] *******************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=13 changed=12 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
183
184TASK [e-identification-deploy : Copy filled templates] *************************
185changed: [localhost] => {"changed": true, "checksum": "9dde35fc2a0be9b0566006b74467bb6f8e7297e4", "dest": "/home/otto/build/deploy/external-router/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "5073b293625cc9f60f8cf575d3b272ad", "mode": "0644", "owner": "root", "size": 7607, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291130.53-125491931270452/source", "state": "file", "uid": 0}
186
187TASK [e-identification-deploy : Delete tempdir] ********************************
188changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deployQHWemN", "state": "absent"}
189
190TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
191changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/external-router/ -zxf /home/otto/build/deploy/external-router//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/external-router//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-external-router:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/external-router//git-info\n rm -rf /tmp/deployQHWemN", "delta": "0:00:00.054193", "end": "2019-04-03 14:32:11.062480", "rc": 0, "start": "2019-04-03 14:32:11.008287", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
192
193TASK [e-identification-deploy : Set access rights] *****************************
194changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/external-router/", "size": 4096, "state": "directory", "uid": 0}
195
196TASK [e-identification-deploy : Set directory access rights] *******************
197changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/external-router/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.010600", "end": "2019-04-03 14:32:11.466301", "rc": 0, "start": "2019-04-03 14:32:11.455701", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
198
199TASK [e-identification-deploy : Run new docker image] **************************
200changed: [localhost] => {"changed": true, "cmd": "docker stop e-identification-external-router-container | cat # pipecat igrores errors\n docker rm e-identification-external-router-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 192.168.100.1:443:443 -p 192.168.100.1:80:80 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=e-identification-external-router-container -v /home/otto/build/deploy/external-router//nginx/nginx.conf:/etc/nginx/nginx.conf:z -v /home/otto/build/deploy/external-router//nginx/conf.d:/etc/nginx/conf.d:z -v /home/otto/build/deploy/external-router//ssl:/etc/nginx/ssl:z -v /home/otto/build/deploy/external-router//html:/etc/nginx/html:z -v /home/otto/build/deploy/logs/e-identification-external-router/:/var/log/nginx:z -v /home/otto/build/deploy/external-router//nginx_cache:/nginx_cache:Z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-external-router:local", "delta": "0:00:00.819077", "end": "2019-04-03 14:32:12.511427", "rc": 0, "start": "2019-04-03 14:32:11.692350", "stderr": "", "stdout": "e-identification-external-router-container\ne-identification-external-router-container\n9f42cf174002aa42240ac6ca82b0b746ee65b46b738e934623f9c795dd1c002a", "stdout_lines": ["e-identification-external-router-container", "e-identification-external-router-container", "9f42cf174002aa42240ac6ca82b0b746ee65b46b738e934623f9c795dd1c002a"], "warnings": []}
201
202PLAY ***************************************************************************
203skipping: no hosts matched
204
205PLAY ***************************************************************************
206
207TASK [setup] *******************************************************************
208ok: [localhost]
209
210TASK [e-identification-apro-certs : Create necessary directories] **************
211ok: [localhost] => (item=/home/otto/build/deploy/metadata/) => {"changed": false, "gid": 0, "group": "root", "item": "/home/otto/build/deploy/metadata/", "mode": "0755", "owner": "root", "path": "/home/otto/build/deploy/metadata/", "size": 4096, "state": "directory", "uid": 0}
212
213TASK [e-identification-apro-certs : Copy truststore] ***************************
214ok: [localhost] => {"changed": false, "checksum": "9e7d553c441fa94b17d43ca9e748a132d25e8f87", "dest": "/home/otto/build/deploy/metadata//kapa-ca", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/metadata//kapa-ca", "size": 1514, "state": "file", "uid": 0}
215
216TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/metadata-server:local] ***
217skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
218
219TASK [e-identification-deploy : Create local tempdir] **************************
220changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.003589", "end": "2019-04-03 14:32:14.201988", "rc": 0, "start": "2019-04-03 14:32:14.198399", "stderr": "", "stdout": "/tmp/deploy9JWYqE", "stdout_lines": ["/tmp/deploy9JWYqE"], "warnings": []}
221
222TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
223changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deploy9JWYqE\n mkdir /tmp/deploy9JWYqE/filled\n echo 2019-04-03T11:32:13Z| tee /tmp/deploy9JWYqE/filled/git-info\n echo Config: | tee -a /tmp/deploy9JWYqE/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deploy9JWYqE/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deploy9JWYqE/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deploy9JWYqE/filled/git-info", "delta": "0:00:00.011277", "end": "2019-04-03 14:32:14.466694", "rc": 0, "start": "2019-04-03 14:32:14.455417", "stderr": "", "stdout": "2019-04-03T11:32:13Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:32:13Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
224
225TASK [e-identification-deploy : Get templates from container to host] **********
226changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/metadata/\n mkdir -p /home/otto/build/deploy/logs/metadata-server/\n mkdir -p /tmp/deploy9JWYqE\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deploy9JWYqE:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/metadata-server:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.661677", "end": "2019-04-03 14:32:15.321438", "rc": 0, "start": "2019-04-03 14:32:14.659761", "stderr": "", "stdout": "./\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./log4j.properties.template\n./metadata-setenv.sh.template\n./server.xml.template\n./metadata-server.properties.template", "stdout_lines": ["./", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./log4j.properties.template", "./metadata-setenv.sh.template", "./server.xml.template", "./metadata-server.properties.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
227
228TASK [e-identification-deploy : Fetch template tarball] ************************
229ok: [localhost] => {"changed": false, "checksum": "0573fb69d210774d6143c201e63441b2960d493a", "dest": "/tmp/deploy9JWYqE/templates.tgz", "file": "/tmp/deploy9JWYqE/templates.tgz", "md5sum": "67aa810d85489d025ad210309eab14de"}
230
231TASK [e-identification-deploy : Fill templates] ********************************
232changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deploy9JWYqE/ -zxf /tmp/deploy9JWYqE/templates.tgz\n mkdir -p /tmp/deploy9JWYqE/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deploy9JWYqE/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/metadata.yml /tmp/deploy9JWYqE/ansible/group_vars/all\n ansible-playbook /tmp/deploy9JWYqE/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deploy9JWYqE -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/metadata.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/metadata/ -e host=tun-pub-beprx1 ", "delta": "0:00:02.023394", "end": "2019-04-03 14:32:17.740195", "rc": 0, "start": "2019-04-03 14:32:15.716801", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Copy Metadata Server properties] ****************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy tomcat server.xml] *************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy metadata-setenv.sh] ************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy log4j.properties] **************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Metadata server specific keystore] *********************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=7 changed=6 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Copy Metadata Server properties] ****************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy tomcat server.xml] *************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy metadata-setenv.sh] ************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy log4j.properties] **************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Metadata server specific keystore] *********************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=7 changed=6 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
233
234TASK [e-identification-deploy : Copy filled templates] *************************
235changed: [localhost] => {"changed": true, "checksum": "49a642c24a3a4e1080dac26655fc28067f15ab6c", "dest": "/home/otto/build/deploy/metadata/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "8a5c43a50253695617236593f6feed84", "mode": "0644", "owner": "root", "size": 6983, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291137.85-167041846517317/source", "state": "file", "uid": 0}
236
237TASK [e-identification-deploy : Delete tempdir] ********************************
238changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deploy9JWYqE", "state": "absent"}
239
240TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
241changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/metadata/ -zxf /home/otto/build/deploy/metadata//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/metadata//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/metadata-server:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/metadata//git-info\n rm -rf /tmp/deploy9JWYqE", "delta": "0:00:00.079649", "end": "2019-04-03 14:32:18.448779", "rc": 0, "start": "2019-04-03 14:32:18.369130", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
242
243TASK [e-identification-deploy : Set access rights] *****************************
244changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/metadata/", "size": 4096, "state": "directory", "uid": 0}
245
246TASK [e-identification-deploy : Set directory access rights] *******************
247changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/metadata/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.005031", "end": "2019-04-03 14:32:18.917418", "rc": 0, "start": "2019-04-03 14:32:18.912387", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
248
249TASK [e-identification-deploy : Run new docker image] **************************
250changed: [localhost] => {"changed": true, "cmd": "docker stop metadata-server-container | cat # pipecat igrores errors\n docker rm metadata-server-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8033:8443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=metadata-server-container -v /home/otto/build/deploy/metadata/:/data00/deploy:z -v /home/otto/build/deploy/logs/metadata-server/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/metadata-server:local", "delta": "0:00:10.781594", "end": "2019-04-03 14:32:29.896843", "rc": 0, "start": "2019-04-03 14:32:19.115249", "stderr": "", "stdout": "metadata-server-container\nmetadata-server-container\nf532092b7807822dee4c7d01f975b268b5a2b295d69e707328136c500da5d521", "stdout_lines": ["metadata-server-container", "metadata-server-container", "f532092b7807822dee4c7d01f975b268b5a2b295d69e707328136c500da5d521"], "warnings": []}
251
252PLAY ***************************************************************************
253
254TASK [setup] *******************************************************************
255ok: [localhost]
256
257TASK [e-identification-apro-certs : Create necessary directories] **************
258ok: [localhost] => (item=/home/otto/build/deploy/proxy/) => {"changed": false, "gid": 0, "group": "root", "item": "/home/otto/build/deploy/proxy/", "mode": "0755", "owner": "root", "path": "/home/otto/build/deploy/proxy/", "size": 4096, "state": "directory", "uid": 0}
259
260TASK [e-identification-apro-certs : Copy truststore] ***************************
261ok: [localhost] => {"changed": false, "checksum": "9e7d553c441fa94b17d43ca9e748a132d25e8f87", "dest": "/home/otto/build/deploy/proxy//kapa-ca", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/proxy//kapa-ca", "size": 1514, "state": "file", "uid": 0}
262
263TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/proxy-server:local] ***
264skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
265
266TASK [e-identification-deploy : Create local tempdir] **************************
267changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.004138", "end": "2019-04-03 14:32:32.669589", "rc": 0, "start": "2019-04-03 14:32:32.665451", "stderr": "", "stdout": "/tmp/deployZMgv8z", "stdout_lines": ["/tmp/deployZMgv8z"], "warnings": []}
268
269TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
270changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deployZMgv8z\n mkdir /tmp/deployZMgv8z/filled\n echo 2019-04-03T11:32:31Z| tee /tmp/deployZMgv8z/filled/git-info\n echo Config: | tee -a /tmp/deployZMgv8z/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deployZMgv8z/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deployZMgv8z/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deployZMgv8z/filled/git-info", "delta": "0:00:00.027191", "end": "2019-04-03 14:32:33.034592", "rc": 0, "start": "2019-04-03 14:32:33.007401", "stderr": "", "stdout": "2019-04-03T11:32:31Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:32:31Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
271
272TASK [e-identification-deploy : Get templates from container to host] **********
273changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/proxy/\n mkdir -p /home/otto/build/deploy/logs/proxy-server/\n mkdir -p /tmp/deployZMgv8z\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deployZMgv8z:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/proxy-server:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.832405", "end": "2019-04-03 14:32:34.125132", "rc": 0, "start": "2019-04-03 14:32:33.292727", "stderr": "", "stdout": "./\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./log4j.properties.template\n./proxy-setenv.sh.template\n./server.xml.template\n./proxy-server.properties.template", "stdout_lines": ["./", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./log4j.properties.template", "./proxy-setenv.sh.template", "./server.xml.template", "./proxy-server.properties.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
274
275TASK [e-identification-deploy : Fetch template tarball] ************************
276ok: [localhost] => {"changed": false, "checksum": "df1660cfe506c0a92cff54782bc93fe053cb0862", "dest": "/tmp/deployZMgv8z/templates.tgz", "file": "/tmp/deployZMgv8z/templates.tgz", "md5sum": "234d9512aa19cf3cb8d6bd4eebbf7726"}
277
278TASK [e-identification-deploy : Fill templates] ********************************
279changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deployZMgv8z/ -zxf /tmp/deployZMgv8z/templates.tgz\n mkdir -p /tmp/deployZMgv8z/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deployZMgv8z/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/proxy.yml /tmp/deployZMgv8z/ansible/group_vars/all\n ansible-playbook /tmp/deployZMgv8z/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deployZMgv8z -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/proxy.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/proxy/ -e host=tun-pub-beprx1 ", "delta": "0:00:03.206858", "end": "2019-04-03 14:32:38.051311", "rc": 0, "start": "2019-04-03 14:32:34.844453", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Copy Proxy Server properties] *******************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy tomcat server.xml] *************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy proxy-setenv.sh] ***************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy log4j.properties] **************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Proxy server specific keystore] ************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy token signing keystore] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=8 changed=7 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Copy Proxy Server properties] *******************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy tomcat server.xml] *************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy proxy-setenv.sh] ***************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy log4j.properties] **************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Proxy server specific keystore] ************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy token signing keystore] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=8 changed=7 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
280
281TASK [e-identification-deploy : Copy filled templates] *************************
282changed: [localhost] => {"changed": true, "checksum": "462c819fa168192fc1ae83e568058bb5fa244ca6", "dest": "/home/otto/build/deploy/proxy/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "445a0c169b37e4f13bebe760d194caf6", "mode": "0644", "owner": "root", "size": 9837, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291158.35-84419447829460/source", "state": "file", "uid": 0}
283
284TASK [e-identification-deploy : Delete tempdir] ********************************
285changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deployZMgv8z", "state": "absent"}
286
287TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
288changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/proxy/ -zxf /home/otto/build/deploy/proxy//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/proxy//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/proxy-server:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/proxy//git-info\n rm -rf /tmp/deployZMgv8z", "delta": "0:00:00.120282", "end": "2019-04-03 14:32:39.621052", "rc": 0, "start": "2019-04-03 14:32:39.500770", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
289
290TASK [e-identification-deploy : Set access rights] *****************************
291changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/proxy/", "size": 4096, "state": "directory", "uid": 0}
292
293TASK [e-identification-deploy : Set directory access rights] *******************
294changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/proxy/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.004060", "end": "2019-04-03 14:32:40.423896", "rc": 0, "start": "2019-04-03 14:32:40.419836", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
295
296TASK [e-identification-deploy : Run new docker image] **************************
297changed: [localhost] => {"changed": true, "cmd": "docker stop proxy-server-container | cat # pipecat igrores errors\n docker rm proxy-server-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8032:8443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=proxy-server-container -v /home/otto/build/deploy/proxy/:/data00/deploy:z -v /home/otto/build/deploy/logs/proxy-server/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/proxy-server:local", "delta": "0:00:10.839931", "end": "2019-04-03 14:32:51.689755", "rc": 0, "start": "2019-04-03 14:32:40.849824", "stderr": "", "stdout": "proxy-server-container\nproxy-server-container\nf5e2ecaabf887658093d9d6f1288bb0b24f9ecda5e29b750fd3138189af97c68", "stdout_lines": ["proxy-server-container", "proxy-server-container", "f5e2ecaabf887658093d9d6f1288bb0b24f9ecda5e29b750fd3138189af97c68"], "warnings": []}
298
299PLAY ***************************************************************************
300
301TASK [setup] *******************************************************************
302ok: [localhost]
303
304TASK [e-identification-apro-certs : Create necessary directories] **************
305ok: [localhost] => (item=/home/otto/build/deploy/sp/) => {"changed": false, "gid": 1000, "group": "otto", "item": "/home/otto/build/deploy/sp/", "mode": "0755", "owner": "otto", "path": "/home/otto/build/deploy/sp/", "size": 4096, "state": "directory", "uid": 1000}
306
307TASK [e-identification-apro-certs : Copy truststore] ***************************
308ok: [localhost] => {"changed": false, "checksum": "9e7d553c441fa94b17d43ca9e748a132d25e8f87", "dest": "/home/otto/build/deploy/sp//kapa-ca", "gid": 1000, "group": "otto", "mode": "0644", "owner": "otto", "path": "/home/otto/build/deploy/sp//kapa-ca", "size": 1514, "state": "file", "uid": 1000}
309
310TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/service-provider:local] ***
311skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
312
313TASK [e-identification-deploy : Create local tempdir] **************************
314changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.004000", "end": "2019-04-03 14:32:53.816189", "rc": 0, "start": "2019-04-03 14:32:53.812189", "stderr": "", "stdout": "/tmp/deployHXtAlf", "stdout_lines": ["/tmp/deployHXtAlf"], "warnings": []}
315
316TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
317changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deployHXtAlf\n mkdir /tmp/deployHXtAlf/filled\n echo 2019-04-03T11:32:52Z| tee /tmp/deployHXtAlf/filled/git-info\n echo Config: | tee -a /tmp/deployHXtAlf/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deployHXtAlf/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deployHXtAlf/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deployHXtAlf/filled/git-info", "delta": "0:00:00.025045", "end": "2019-04-03 14:32:54.090852", "rc": 0, "start": "2019-04-03 14:32:54.065807", "stderr": "", "stdout": "2019-04-03T11:32:52Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:32:52Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
318
319TASK [e-identification-deploy : Get templates from container to host] **********
320changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/sp/\n mkdir -p /home/otto/build/deploy/logs/service-provider/\n mkdir -p /tmp/deployHXtAlf\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deployHXtAlf:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/service-provider:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.857345", "end": "2019-04-03 14:32:55.199540", "rc": 0, "start": "2019-04-03 14:32:54.342195", "stderr": "", "stdout": "./\n./httpd.conf.template\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./shibboleth2.xml.template.dev\n./shibboleth2.xml.template.prod\n./attribute-policy.xml.template\n./log4j.properties.template\n./sp-ssl.conf.template\n./shibboleth2.xml.template.local\n./shibboleth2.xml.template.kete\n./sp-setenv.sh.template\n./shibboleth2.xml.template.test\n./service-provider.properties.template", "stdout_lines": ["./", "./httpd.conf.template", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./shibboleth2.xml.template.dev", "./shibboleth2.xml.template.prod", "./attribute-policy.xml.template", "./log4j.properties.template", "./sp-ssl.conf.template", "./shibboleth2.xml.template.local", "./shibboleth2.xml.template.kete", "./sp-setenv.sh.template", "./shibboleth2.xml.template.test", "./service-provider.properties.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
321
322TASK [e-identification-deploy : Fetch template tarball] ************************
323ok: [localhost] => {"changed": false, "checksum": "054ff18f69f95323a4f1cc38e7e5d7060b2018af", "dest": "/tmp/deployHXtAlf/templates.tgz", "file": "/tmp/deployHXtAlf/templates.tgz", "md5sum": "6d68883ebfcbce4dfdad72aa4447b827"}
324
325TASK [e-identification-deploy : Fill templates] ********************************
326changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deployHXtAlf/ -zxf /tmp/deployHXtAlf/templates.tgz\n mkdir -p /tmp/deployHXtAlf/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deployHXtAlf/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/sp.yml /tmp/deployHXtAlf/ansible/group_vars/all\n ansible-playbook /tmp/deployHXtAlf/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deployHXtAlf -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/sp.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/sp/ -e host=tun-pub-sp1 ", "delta": "0:00:07.245545", "end": "2019-04-03 14:33:03.086072", "rc": 0, "start": "2019-04-03 14:32:55.840527", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using file module with state=directory rather than running\nmkdir\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Copy Shibboleth config template] ****************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Shibboleth attribute-policy template] ******************\nchanged: [localhost]\n\nTASK [create_tar : Copy sp-setenv.sh] ******************************************\nchanged: [localhost]\n\nTASK [create_tar : Create dirs] ************************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy root cert file] ****************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Apache SSL cert file] **********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Apache SSL key file] ***********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Apache SSL config] *************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy httpd config] ******************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Shibboleth metadata cert] ******************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth metadata key] *******************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy sp eidas signing cert] *********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy sp eidas signing key] **********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy sp eidas encryption cert] ******************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy sp eidas encryption key] *******************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Service Provider properties] ***************************\nchanged: [localhost]\n\nTASK [create_tar : Copy log4j.properties] **************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy sp specific keystore] **********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy eidas cert] ********************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy eidas key] *********************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=22 changed=21 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Copy Shibboleth config template] ****************************", "changed: [localhost]", "", "TASK [create_tar : Copy Shibboleth attribute-policy template] ******************", "changed: [localhost]", "", "TASK [create_tar : Copy sp-setenv.sh] ******************************************", "changed: [localhost]", "", "TASK [create_tar : Create dirs] ************************************************", "changed: [localhost]", "", "TASK [create_tar : Copy root cert file] ****************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Apache SSL cert file] **********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Apache SSL key file] ***********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Apache SSL config] *************************************", "changed: [localhost]", "", "TASK [create_tar : Copy httpd config] ******************************************", "changed: [localhost]", "", "TASK [create_tar : Copy Shibboleth metadata cert] ******************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth metadata key] *******************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy sp eidas signing cert] *********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy sp eidas signing key] **********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy sp eidas encryption cert] ******************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy sp eidas encryption key] *******************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Service Provider properties] ***************************", "changed: [localhost]", "", "TASK [create_tar : Copy log4j.properties] **************************************", "changed: [localhost]", "", "TASK [create_tar : Copy sp specific keystore] **********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy eidas cert] ********************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy eidas key] *********************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=22 changed=21 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
327
328TASK [e-identification-deploy : Copy filled templates] *************************
329changed: [localhost] => {"changed": true, "checksum": "52a97ad357f80b34e6bde0914e7be359731dc4da", "dest": "/home/otto/build/deploy/sp/filled_templates.tgz", "gid": 1000, "group": "otto", "md5sum": "195459315f6a4c734e4ad00fdabd4e79", "mode": "0644", "owner": "otto", "size": 28010, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291183.38-9018323691751/source", "state": "file", "uid": 1000}
330
331TASK [e-identification-deploy : Delete tempdir] ********************************
332changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deployHXtAlf", "state": "absent"}
333
334TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
335changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/sp/ -zxf /home/otto/build/deploy/sp//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/sp//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/service-provider:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/sp//git-info\n rm -rf /tmp/deployHXtAlf", "delta": "0:00:00.234206", "end": "2019-04-03 14:33:04.816961", "rc": 0, "start": "2019-04-03 14:33:04.582755", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
336
337TASK [e-identification-deploy : Set access rights] *****************************
338changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/sp/", "size": 4096, "state": "directory", "uid": 0}
339
340TASK [e-identification-deploy : Set directory access rights] *******************
341changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/sp/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.019511", "end": "2019-04-03 14:33:05.744231", "rc": 0, "start": "2019-04-03 14:33:05.724720", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
342
343TASK [e-identification-deploy : Run new docker image] **************************
344changed: [localhost] => {"changed": true, "cmd": "docker stop service-provider-container | cat # pipecat igrores errors\n docker rm service-provider-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8030:443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=service-provider-container -v /home/otto/build/deploy/sp/:/data00/deploy:z -v /home/otto/build/deploy/logs/service-provider/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/service-provider:local", "delta": "0:00:10.736050", "end": "2019-04-03 14:33:16.948646", "rc": 0, "start": "2019-04-03 14:33:06.212596", "stderr": "", "stdout": "service-provider-container\nservice-provider-container\n12bb38e5dd7547234093bd7779d8506378b860319ed9bf4cb93e642130610756", "stdout_lines": ["service-provider-container", "service-provider-container", "12bb38e5dd7547234093bd7779d8506378b860319ed9bf4cb93e642130610756"], "warnings": []}
345
346PLAY ***************************************************************************
347
348TASK [setup] *******************************************************************
349ok: [localhost]
350
351TASK [e-identification-apro-certs : Create necessary directories] **************
352ok: [localhost] => (item=/home/otto/build/deploy/idp/) => {"changed": false, "gid": 1000, "group": "otto", "item": "/home/otto/build/deploy/idp/", "mode": "0755", "owner": "otto", "path": "/home/otto/build/deploy/idp/", "size": 4096, "state": "directory", "uid": 1000}
353
354TASK [e-identification-apro-certs : Copy truststore] ***************************
355ok: [localhost] => {"changed": false, "checksum": "9e7d553c441fa94b17d43ca9e748a132d25e8f87", "dest": "/home/otto/build/deploy/idp//kapa-ca", "gid": 1000, "group": "otto", "mode": "0644", "owner": "otto", "path": "/home/otto/build/deploy/idp//kapa-ca", "size": 1514, "state": "file", "uid": 1000}
356
357TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/identity-provider:local] ***
358skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
359
360TASK [e-identification-deploy : Create local tempdir] **************************
361changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.003969", "end": "2019-04-03 14:33:19.107674", "rc": 0, "start": "2019-04-03 14:33:19.103705", "stderr": "", "stdout": "/tmp/deployWHTljr", "stdout_lines": ["/tmp/deployWHTljr"], "warnings": []}
362
363TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
364changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deployWHTljr\n mkdir /tmp/deployWHTljr/filled\n echo 2019-04-03T11:33:18Z| tee /tmp/deployWHTljr/filled/git-info\n echo Config: | tee -a /tmp/deployWHTljr/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deployWHTljr/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deployWHTljr/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deployWHTljr/filled/git-info", "delta": "0:00:00.024126", "end": "2019-04-03 14:33:19.458338", "rc": 0, "start": "2019-04-03 14:33:19.434212", "stderr": "", "stdout": "2019-04-03T11:33:18Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:33:18Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
365
366TASK [e-identification-deploy : Get templates from container to host] **********
367changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/idp/\n mkdir -p /home/otto/build/deploy/logs/identity-provider/\n mkdir -p /tmp/deployWHTljr\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deployWHTljr:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/identity-provider:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.842230", "end": "2019-04-03 14:33:20.562258", "rc": 0, "start": "2019-04-03 14:33:19.720028", "stderr": "", "stdout": "./\n./attribute-resolver-ext-connector.xml.template\n./access-control.xml.template\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./webapp_error.jsp.template\n./idp-install.sh.template\n./metadata-providers.xml.template\n./shibboleth_logback.xml.template\n./idp.properties.template\n./server.xml.template\n./idp-install.properties.template\n./identity-provider.properties.template\n./idp-setenv.sh.template\n./views_error.jsp.template", "stdout_lines": ["./", "./attribute-resolver-ext-connector.xml.template", "./access-control.xml.template", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./webapp_error.jsp.template", "./idp-install.sh.template", "./metadata-providers.xml.template", "./shibboleth_logback.xml.template", "./idp.properties.template", "./server.xml.template", "./idp-install.properties.template", "./identity-provider.properties.template", "./idp-setenv.sh.template", "./views_error.jsp.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
368
369TASK [e-identification-deploy : Fetch template tarball] ************************
370ok: [localhost] => {"changed": false, "checksum": "79574a9cf2655b408656c0892447673344bef603", "dest": "/tmp/deployWHTljr/templates.tgz", "file": "/tmp/deployWHTljr/templates.tgz", "md5sum": "51cb5d8f28df7b7e9ac069c3374bbd78"}
371
372TASK [e-identification-deploy : Fill templates] ********************************
373changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deployWHTljr/ -zxf /tmp/deployWHTljr/templates.tgz\n mkdir -p /tmp/deployWHTljr/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deployWHTljr/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/idp.yml /tmp/deployWHTljr/ansible/group_vars/all\n ansible-playbook /tmp/deployWHTljr/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deployWHTljr -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/idp.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/idp/ -e host=tun-pub-idp1 ", "delta": "0:00:04.410952", "end": "2019-04-03 14:33:25.500702", "rc": 0, "start": "2019-04-03 14:33:21.089750", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using file module with state=directory rather than running\nmkdir\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Copy Shibboleth install properties] *************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Shibboleth install script] *****************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider properties] **************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Tomcat server.xml] *************************************\nchanged: [localhost]\n\nTASK [create_tar : Create credentials dir] *************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create metadata dir] ****************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy tomcat_keystore] ***************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth metadata] ***********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Identity Provider access-control.xml] ******************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider idp.properties] **********************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider metadata-providers.xml] **************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider attribute-resolver-ext-connector.xml] \nchanged: [localhost]\n\nTASK [create_tar : Copy Shib error.jsp] ****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy tomcat error.jsp] **************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy idp-setenv.sh] *****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy shibboleth_logback.xml] ********************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Shibboleth global.xml] *********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=23 changed=22 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Copy Shibboleth install properties] *************************", "changed: [localhost]", "", "TASK [create_tar : Copy Shibboleth install script] *****************************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider properties] **************************", "changed: [localhost]", "", "TASK [create_tar : Copy Tomcat server.xml] *************************************", "changed: [localhost]", "", "TASK [create_tar : Create credentials dir] *************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create metadata dir] ****************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy tomcat_keystore] ***************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth metadata] ***********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Identity Provider access-control.xml] ******************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider idp.properties] **********************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider metadata-providers.xml] **************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider attribute-resolver-ext-connector.xml] ", "changed: [localhost]", "", "TASK [create_tar : Copy Shib error.jsp] ****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy tomcat error.jsp] **************************************", "changed: [localhost]", "", "TASK [create_tar : Copy idp-setenv.sh] *****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy shibboleth_logback.xml] ********************************", "changed: [localhost]", "", "TASK [create_tar : Copy Shibboleth global.xml] *********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=23 changed=22 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
374
375TASK [e-identification-deploy : Copy filled templates] *************************
376changed: [localhost] => {"changed": true, "checksum": "47206390d50000ba4d7b81ae6ea2e95283f2deb6", "dest": "/home/otto/build/deploy/idp/filled_templates.tgz", "gid": 1000, "group": "otto", "md5sum": "bdedccea6faaa3a156e83b78e8362b51", "mode": "0644", "owner": "otto", "size": 19304, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291205.64-128359643021387/source", "state": "file", "uid": 1000}
377
378TASK [e-identification-deploy : Delete tempdir] ********************************
379changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deployWHTljr", "state": "absent"}
380
381TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
382changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/idp/ -zxf /home/otto/build/deploy/idp//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/idp//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/identity-provider:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/idp//git-info\n rm -rf /tmp/deployWHTljr", "delta": "0:00:00.045463", "end": "2019-04-03 14:33:26.114347", "rc": 0, "start": "2019-04-03 14:33:26.068884", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
383
384TASK [e-identification-deploy : Set access rights] *****************************
385changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/idp/", "size": 4096, "state": "directory", "uid": 0}
386
387TASK [e-identification-deploy : Set directory access rights] *******************
388changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/idp/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.005975", "end": "2019-04-03 14:33:26.453238", "rc": 0, "start": "2019-04-03 14:33:26.447263", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
389
390TASK [e-identification-deploy : Run new docker image] **************************
391changed: [localhost] => {"changed": true, "cmd": "docker stop identity-provider-container | cat # pipecat igrores errors\n docker rm identity-provider-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8031:8443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=identity-provider-container -v /home/otto/build/deploy/idp/:/data00/deploy:z -v /home/otto/build/deploy/logs/identity-provider/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/identity-provider:local", "delta": "0:00:10.932206", "end": "2019-04-03 14:33:37.593191", "rc": 0, "start": "2019-04-03 14:33:26.660985", "stderr": "", "stdout": "identity-provider-container\nidentity-provider-container\n874a0c026aae5070d3a39bc900adaf5b1499216c3580f270cdf9a6900651232a", "stdout_lines": ["identity-provider-container", "identity-provider-container", "874a0c026aae5070d3a39bc900adaf5b1499216c3580f270cdf9a6900651232a"], "warnings": []}
392
393PLAY ***************************************************************************
394
395TASK [setup] *******************************************************************
396ok: [localhost]
397
398TASK [e-identification-apro-certs : Create necessary directories] **************
399ok: [localhost] => (item=/home/otto/build/deploy/tupasidp/) => {"changed": false, "gid": 1000, "group": "otto", "item": "/home/otto/build/deploy/tupasidp/", "mode": "0755", "owner": "otto", "path": "/home/otto/build/deploy/tupasidp/", "size": 4096, "state": "directory", "uid": 1000}
400
401TASK [e-identification-apro-certs : Copy truststore] ***************************
402ok: [localhost] => {"changed": false, "checksum": "9e7d553c441fa94b17d43ca9e748a132d25e8f87", "dest": "/home/otto/build/deploy/tupasidp//kapa-ca", "gid": 1000, "group": "otto", "mode": "0644", "owner": "otto", "path": "/home/otto/build/deploy/tupasidp//kapa-ca", "size": 1514, "state": "file", "uid": 1000}
403
404TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-tupas-idp:local] ***
405skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
406
407TASK [e-identification-deploy : Create local tempdir] **************************
408changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.004044", "end": "2019-04-03 14:33:39.902287", "rc": 0, "start": "2019-04-03 14:33:39.898243", "stderr": "", "stdout": "/tmp/deployrWG0Hg", "stdout_lines": ["/tmp/deployrWG0Hg"], "warnings": []}
409
410TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
411changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deployrWG0Hg\n mkdir /tmp/deployrWG0Hg/filled\n echo 2019-04-03T11:33:38Z| tee /tmp/deployrWG0Hg/filled/git-info\n echo Config: | tee -a /tmp/deployrWG0Hg/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deployrWG0Hg/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deployrWG0Hg/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deployrWG0Hg/filled/git-info", "delta": "0:00:00.009763", "end": "2019-04-03 14:33:40.504698", "rc": 0, "start": "2019-04-03 14:33:40.494935", "stderr": "", "stdout": "2019-04-03T11:33:38Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:33:38Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
412
413TASK [e-identification-deploy : Get templates from container to host] **********
414changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/tupasidp/\n mkdir -p /home/otto/build/deploy/logs/identity-provider-tupasidp/\n mkdir -p /tmp/deployrWG0Hg\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deployrWG0Hg:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-tupas-idp:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.925783", "end": "2019-04-03 14:33:41.803322", "rc": 0, "start": "2019-04-03 14:33:40.877539", "stderr": "", "stdout": "./\n./access-control.xml.template\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./webapp_error.jsp.template\n./idp-install.sh.template\n./metadata-providers.xml.template\n./shibboleth_logback.xml.template\n./idp.properties.template\n./server.xml.template\n./log4j.properties.template\n./tupas-bank-properties.csv.template\n./idp-install.properties.template\n./general-authn.xml.template\n./identity-provider.properties.template\n./idp-setenv.sh.template\n./views_error.jsp.template", "stdout_lines": ["./", "./access-control.xml.template", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./webapp_error.jsp.template", "./idp-install.sh.template", "./metadata-providers.xml.template", "./shibboleth_logback.xml.template", "./idp.properties.template", "./server.xml.template", "./log4j.properties.template", "./tupas-bank-properties.csv.template", "./idp-install.properties.template", "./general-authn.xml.template", "./identity-provider.properties.template", "./idp-setenv.sh.template", "./views_error.jsp.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
415
416TASK [e-identification-deploy : Fetch template tarball] ************************
417ok: [localhost] => {"changed": false, "checksum": "caac91f90136c55961091f3936d72434e6de1453", "dest": "/tmp/deployrWG0Hg/templates.tgz", "file": "/tmp/deployrWG0Hg/templates.tgz", "md5sum": "18ee81003d40dc8bb303ed597fa4ee24"}
418
419TASK [e-identification-deploy : Fill templates] ********************************
420changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deployrWG0Hg/ -zxf /tmp/deployrWG0Hg/templates.tgz\n mkdir -p /tmp/deployrWG0Hg/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deployrWG0Hg/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/tupasidp.yml /tmp/deployrWG0Hg/ansible/group_vars/all\n ansible-playbook /tmp/deployrWG0Hg/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deployrWG0Hg -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/tupasidp.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/tupasidp/ -e host=tun-pub-adap1 ", "delta": "0:00:05.660858", "end": "2019-04-03 14:33:47.970836", "rc": 0, "start": "2019-04-03 14:33:42.309978", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using file module with state=directory rather than running\nmkdir\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Copy Shibboleth install properties] *************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Shibboleth install script] *****************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider properties] **************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Tomcat server.xml] *************************************\nchanged: [localhost]\n\nTASK [create_tar : Create credentials dir] *************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create metadata dir] ****************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy tomcat_keystore] ***************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth metadata] ***********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Identity Provider access-control.xml] ******************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider idp.properties] **********************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider metadata-providers.xml] **************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider general-authn.xml] *******************\nchanged: [localhost]\n\nTASK [create_tar : Copy Shib error.jsp] ****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy tomcat error.jsp] **************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy idp-setenv.sh] *****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Tupas attribute map file] ******************************\nchanged: [localhost]\n\nTASK [create_tar : Copy shibboleth_logback.xml] ********************************\nchanged: [localhost]\n\nTASK [create_tar : Copy log4j.properties] **************************************\nchanged: [localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=24 changed=23 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Copy Shibboleth install properties] *************************", "changed: [localhost]", "", "TASK [create_tar : Copy Shibboleth install script] *****************************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider properties] **************************", "changed: [localhost]", "", "TASK [create_tar : Copy Tomcat server.xml] *************************************", "changed: [localhost]", "", "TASK [create_tar : Create credentials dir] *************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create metadata dir] ****************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy tomcat_keystore] ***************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth metadata] ***********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Identity Provider access-control.xml] ******************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider idp.properties] **********************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider metadata-providers.xml] **************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider general-authn.xml] *******************", "changed: [localhost]", "", "TASK [create_tar : Copy Shib error.jsp] ****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy tomcat error.jsp] **************************************", "changed: [localhost]", "", "TASK [create_tar : Copy idp-setenv.sh] *****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy Tupas attribute map file] ******************************", "changed: [localhost]", "", "TASK [create_tar : Copy shibboleth_logback.xml] ********************************", "changed: [localhost]", "", "TASK [create_tar : Copy log4j.properties] **************************************", "changed: [localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=24 changed=23 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
421
422TASK [e-identification-deploy : Copy filled templates] *************************
423changed: [localhost] => {"changed": true, "checksum": "4ef277f70122198951d7ebfa44b0c0fe11d3c303", "dest": "/home/otto/build/deploy/tupasidp/filled_templates.tgz", "gid": 1000, "group": "otto", "md5sum": "fe5d8616eda4735e584869077d3e260a", "mode": "0644", "owner": "otto", "size": 19222, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291228.11-158686638133041/source", "state": "file", "uid": 1000}
424
425TASK [e-identification-deploy : Delete tempdir] ********************************
426changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deployrWG0Hg", "state": "absent"}
427
428TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
429changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/tupasidp/ -zxf /home/otto/build/deploy/tupasidp//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/tupasidp//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-tupas-idp:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/tupasidp//git-info\n rm -rf /tmp/deployrWG0Hg", "delta": "0:00:00.094467", "end": "2019-04-03 14:33:49.002948", "rc": 0, "start": "2019-04-03 14:33:48.908481", "stderr": "", "stdout": "Image:\n\ndevelop", "stdout_lines": ["Image:", "", "develop"], "warnings": ["Consider using unarchive module rather than running tar"]}
430
431TASK [e-identification-deploy : Set access rights] *****************************
432changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/tupasidp/", "size": 4096, "state": "directory", "uid": 0}
433
434TASK [e-identification-deploy : Set directory access rights] *******************
435changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/tupasidp/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.008225", "end": "2019-04-03 14:33:49.532276", "rc": 0, "start": "2019-04-03 14:33:49.524051", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
436
437TASK [e-identification-deploy : Run new docker image] **************************
438changed: [localhost] => {"changed": true, "cmd": "docker stop integration-identity-provider-container | cat # pipecat igrores errors\n docker rm integration-identity-provider-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8034:8443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=integration-identity-provider-container -v /home/otto/build/deploy/tupasidp/:/data00/deploy:z -v /home/otto/build/deploy/logs/identity-provider-tupasidp/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-tupas-idp:local", "delta": "0:00:11.147154", "end": "2019-04-03 14:34:00.990684", "rc": 0, "start": "2019-04-03 14:33:49.843530", "stderr": "", "stdout": "integration-identity-provider-container\nintegration-identity-provider-container\n40db08831bf53c1594293af90ca0615cc72f9028fa353f5aa09110e451885f57", "stdout_lines": ["integration-identity-provider-container", "integration-identity-provider-container", "40db08831bf53c1594293af90ca0615cc72f9028fa353f5aa09110e451885f57"], "warnings": []}
439
440PLAY ***************************************************************************
441
442TASK [setup] *******************************************************************
443ok: [localhost]
444
445TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vtj-client:local] ***
446skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
447
448TASK [e-identification-deploy : Create local tempdir] **************************
449changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.022991", "end": "2019-04-03 14:34:02.866744", "rc": 0, "start": "2019-04-03 14:34:02.843753", "stderr": "", "stdout": "/tmp/deployAbZXT7", "stdout_lines": ["/tmp/deployAbZXT7"], "warnings": []}
450
451TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
452changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deployAbZXT7\n mkdir /tmp/deployAbZXT7/filled\n echo 2019-04-03T11:34:02Z| tee /tmp/deployAbZXT7/filled/git-info\n echo Config: | tee -a /tmp/deployAbZXT7/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deployAbZXT7/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deployAbZXT7/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deployAbZXT7/filled/git-info", "delta": "0:00:00.024473", "end": "2019-04-03 14:34:03.316005", "rc": 0, "start": "2019-04-03 14:34:03.291532", "stderr": "", "stdout": "2019-04-03T11:34:02Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:34:02Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
453
454TASK [e-identification-deploy : Get templates from container to host] **********
455changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/vtj/\n mkdir -p /home/otto/build/deploy/logs/vtj-client/\n mkdir -p /tmp/deployAbZXT7\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deployAbZXT7:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vtj-client:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.891433", "end": "2019-04-03 14:34:04.608190", "rc": 0, "start": "2019-04-03 14:34:03.716757", "stderr": "", "stdout": "./\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./cmd.sh.template\n./logback.xml.template\n./service.properties.template", "stdout_lines": ["./", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./cmd.sh.template", "./logback.xml.template", "./service.properties.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
456
457TASK [e-identification-deploy : Fetch template tarball] ************************
458ok: [localhost] => {"changed": false, "checksum": "555fc15b5c9aedaee8b20726a3efa26be3b89b6c", "dest": "/tmp/deployAbZXT7/templates.tgz", "file": "/tmp/deployAbZXT7/templates.tgz", "md5sum": "45c99f98f85e74127ce7e614c9b63512"}
459
460TASK [e-identification-deploy : Fill templates] ********************************
461changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deployAbZXT7/ -zxf /tmp/deployAbZXT7/templates.tgz\n mkdir -p /tmp/deployAbZXT7/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deployAbZXT7/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/vtj.yml /tmp/deployAbZXT7/ansible/group_vars/all\n ansible-playbook /tmp/deployAbZXT7/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deployAbZXT7 -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/vtj.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/vtj/ -e host=tun-pub-beprx1 ", "delta": "0:00:04.596543", "end": "2019-04-03 14:34:10.202437", "rc": 0, "start": "2019-04-03 14:34:05.605894", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Fill vtj-client.properties] *********************************\nchanged: [localhost]\n\nTASK [create_tar : Fill logback.xml.template] **********************************\nchanged: [localhost]\n\nTASK [create_tar : Copy keystore] **********************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy tomcat keystore] ***************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy xroadTrustStore] ***************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Startup script] *********************************************\nchanged: [localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=8 changed=7 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Fill vtj-client.properties] *********************************", "changed: [localhost]", "", "TASK [create_tar : Fill logback.xml.template] **********************************", "changed: [localhost]", "", "TASK [create_tar : Copy keystore] **********************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy tomcat keystore] ***************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy xroadTrustStore] ***************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Startup script] *********************************************", "changed: [localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=8 changed=7 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
462
463TASK [e-identification-deploy : Copy filled templates] *************************
464changed: [localhost] => {"changed": true, "checksum": "32eb64626163bd3c40b4322f475927120d7bb901", "dest": "/home/otto/build/deploy/vtj/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "037e9d949b973551ca048d71d85f4658", "mode": "0644", "owner": "root", "size": 8369, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291250.53-95839933318016/source", "state": "file", "uid": 0}
465
466TASK [e-identification-deploy : Delete tempdir] ********************************
467changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deployAbZXT7", "state": "absent"}
468
469TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
470changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/vtj/ -zxf /home/otto/build/deploy/vtj//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/vtj//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vtj-client:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/vtj//git-info\n rm -rf /tmp/deployAbZXT7", "delta": "0:00:00.090358", "end": "2019-04-03 14:34:11.855071", "rc": 0, "start": "2019-04-03 14:34:11.764713", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
471
472TASK [e-identification-deploy : Set access rights] *****************************
473changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/vtj/", "size": 4096, "state": "directory", "uid": 0}
474
475TASK [e-identification-deploy : Set directory access rights] *******************
476changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/vtj/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.061776", "end": "2019-04-03 14:34:13.199507", "rc": 0, "start": "2019-04-03 14:34:13.137731", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
477
478TASK [e-identification-deploy : Run new docker image] **************************
479changed: [localhost] => {"changed": true, "cmd": "docker stop vtj-client-container | cat # pipecat igrores errors\n docker rm vtj-client-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8035:8035 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=vtj-client-container -v /home/otto/build/deploy/vtj/:/data00/deploy:z -v /home/otto/build/deploy/logs/vtj-client/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vtj-client:local", "delta": "0:00:11.107843", "end": "2019-04-03 14:34:24.543969", "rc": 0, "start": "2019-04-03 14:34:13.436126", "stderr": "", "stdout": "vtj-client-container\nvtj-client-container\nb89aef54a0f0334e4390888ef66ca1625a543ad8be0f5a0cc144f30d18ae1452", "stdout_lines": ["vtj-client-container", "vtj-client-container", "b89aef54a0f0334e4390888ef66ca1625a543ad8be0f5a0cc144f30d18ae1452"], "warnings": []}
480
481PLAY ***************************************************************************
482
483TASK [setup] *******************************************************************
484ok: [localhost]
485
486TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vtj-client:local] ***
487skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
488
489TASK [e-identification-deploy : Create local tempdir] **************************
490changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.009706", "end": "2019-04-03 14:34:27.204499", "rc": 0, "start": "2019-04-03 14:34:27.194793", "stderr": "", "stdout": "/tmp/deploy9IlBKn", "stdout_lines": ["/tmp/deploy9IlBKn"], "warnings": []}
491
492TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
493changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deploy9IlBKn\n mkdir /tmp/deploy9IlBKn/filled\n echo 2019-04-03T11:34:26Z| tee /tmp/deploy9IlBKn/filled/git-info\n echo Config: | tee -a /tmp/deploy9IlBKn/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deploy9IlBKn/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deploy9IlBKn/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deploy9IlBKn/filled/git-info", "delta": "0:00:00.033958", "end": "2019-04-03 14:34:27.579592", "rc": 0, "start": "2019-04-03 14:34:27.545634", "stderr": "", "stdout": "2019-04-03T11:34:26Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:34:26Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
494
495TASK [e-identification-deploy : Get templates from container to host] **********
496changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/vtj2/\n mkdir -p /home/otto/build/deploy/logs/vtj-client2/\n mkdir -p /tmp/deploy9IlBKn\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deploy9IlBKn:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vtj-client:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.784749", "end": "2019-04-03 14:34:28.723117", "rc": 0, "start": "2019-04-03 14:34:27.938368", "stderr": "", "stdout": "./\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./cmd.sh.template\n./logback.xml.template\n./service.properties.template", "stdout_lines": ["./", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./cmd.sh.template", "./logback.xml.template", "./service.properties.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
497
498TASK [e-identification-deploy : Fetch template tarball] ************************
499ok: [localhost] => {"changed": false, "checksum": "1f492b1023527f461683f93eea0c3dcfd64076f9", "dest": "/tmp/deploy9IlBKn/templates.tgz", "file": "/tmp/deploy9IlBKn/templates.tgz", "md5sum": "41a1a31cc7b9bf4d75e1f4c2edce222c"}
500
501TASK [e-identification-deploy : Fill templates] ********************************
502changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deploy9IlBKn/ -zxf /tmp/deploy9IlBKn/templates.tgz\n mkdir -p /tmp/deploy9IlBKn/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deploy9IlBKn/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/vtj2.yml /tmp/deploy9IlBKn/ansible/group_vars/all\n ansible-playbook /tmp/deploy9IlBKn/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deploy9IlBKn -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/vtj2.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/vtj2/ -e host=tun-pub-cache1 ", "delta": "0:00:03.874667", "end": "2019-04-03 14:34:33.448679", "rc": 0, "start": "2019-04-03 14:34:29.574012", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Fill vtj-client.properties] *********************************\nchanged: [localhost]\n\nTASK [create_tar : Fill logback.xml.template] **********************************\nchanged: [localhost]\n\nTASK [create_tar : Copy keystore] **********************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy tomcat keystore] ***************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy xroadTrustStore] ***************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Startup script] *********************************************\nchanged: [localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=8 changed=7 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Fill vtj-client.properties] *********************************", "changed: [localhost]", "", "TASK [create_tar : Fill logback.xml.template] **********************************", "changed: [localhost]", "", "TASK [create_tar : Copy keystore] **********************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy tomcat keystore] ***************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy xroadTrustStore] ***************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Startup script] *********************************************", "changed: [localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=8 changed=7 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
503
504TASK [e-identification-deploy : Copy filled templates] *************************
505changed: [localhost] => {"changed": true, "checksum": "67e476d0551212dbb45ab3cf1113c9ecaee9416e", "dest": "/home/otto/build/deploy/vtj2/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "3fb0bb17c40c98e93995270c58161e94", "mode": "0644", "owner": "root", "size": 8368, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291273.76-94206266153300/source", "state": "file", "uid": 0}
506
507TASK [e-identification-deploy : Delete tempdir] ********************************
508changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deploy9IlBKn", "state": "absent"}
509
510TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
511changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/vtj2/ -zxf /home/otto/build/deploy/vtj2//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/vtj2//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vtj-client:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/vtj2//git-info\n rm -rf /tmp/deploy9IlBKn", "delta": "0:00:00.122493", "end": "2019-04-03 14:34:35.029693", "rc": 0, "start": "2019-04-03 14:34:34.907200", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
512
513TASK [e-identification-deploy : Set access rights] *****************************
514changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/vtj2/", "size": 4096, "state": "directory", "uid": 0}
515
516TASK [e-identification-deploy : Set directory access rights] *******************
517changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/vtj2/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.009320", "end": "2019-04-03 14:34:35.888157", "rc": 0, "start": "2019-04-03 14:34:35.878837", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
518
519TASK [e-identification-deploy : Run new docker image] **************************
520changed: [localhost] => {"changed": true, "cmd": "docker stop vtj-client-container2 | cat # pipecat igrores errors\n docker rm vtj-client-container2 | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8044:8035 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=vtj-client-container2 -v /home/otto/build/deploy/vtj2/:/data00/deploy:z -v /home/otto/build/deploy/logs/vtj-client2/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vtj-client:local", "delta": "0:00:11.349223", "end": "2019-04-03 14:34:47.620008", "rc": 0, "start": "2019-04-03 14:34:36.270785", "stderr": "", "stdout": "vtj-client-container2\nvtj-client-container2\nb8a9fdfaf015e82700bd8609549c0294a038961b527b0855596f04b2d8f81d07", "stdout_lines": ["vtj-client-container2", "vtj-client-container2", "b8a9fdfaf015e82700bd8609549c0294a038961b527b0855596f04b2d8f81d07"], "warnings": []}
521
522PLAY ***************************************************************************
523
524TASK [setup] *******************************************************************
525ok: [localhost]
526
527TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-fake-vtj:local] ***
528skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
529
530TASK [e-identification-deploy : Create local tempdir] **************************
531changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.005539", "end": "2019-04-03 14:34:50.008965", "rc": 0, "start": "2019-04-03 14:34:50.003426", "stderr": "", "stdout": "/tmp/deploy2iyVwm", "stdout_lines": ["/tmp/deploy2iyVwm"], "warnings": []}
532
533TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
534changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deploy2iyVwm\n mkdir /tmp/deploy2iyVwm/filled\n echo 2019-04-03T11:34:49Z| tee /tmp/deploy2iyVwm/filled/git-info\n echo Config: | tee -a /tmp/deploy2iyVwm/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deploy2iyVwm/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deploy2iyVwm/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deploy2iyVwm/filled/git-info", "delta": "0:00:00.026093", "end": "2019-04-03 14:34:50.513508", "rc": 0, "start": "2019-04-03 14:34:50.487415", "stderr": "", "stdout": "2019-04-03T11:34:49Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:34:49Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
535
536TASK [e-identification-deploy : Get templates from container to host] **********
537changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/fake-vtj/\n mkdir -p /home/otto/build/deploy/logs/fake-vtj/\n mkdir -p /tmp/deploy2iyVwm\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deploy2iyVwm:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-fake-vtj:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:01.001141", "end": "2019-04-03 14:34:51.902826", "rc": 0, "start": "2019-04-03 14:34:50.901685", "stderr": "", "stdout": "./\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./services.json.template\n./logback.xml.template\n./service.properties.template", "stdout_lines": ["./", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./services.json.template", "./logback.xml.template", "./service.properties.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
538
539TASK [e-identification-deploy : Fetch template tarball] ************************
540ok: [localhost] => {"changed": false, "checksum": "75363c835e928ed5d26e6e19c05e047629ff0be7", "dest": "/tmp/deploy2iyVwm/templates.tgz", "file": "/tmp/deploy2iyVwm/templates.tgz", "md5sum": "3e590441542f8244791f38e3fd0be096"}
541
542TASK [e-identification-deploy : Fill templates] ********************************
543changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deploy2iyVwm/ -zxf /tmp/deploy2iyVwm/templates.tgz\n mkdir -p /tmp/deploy2iyVwm/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deploy2iyVwm/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/fake-vtj.yml /tmp/deploy2iyVwm/ansible/group_vars/all\n ansible-playbook /tmp/deploy2iyVwm/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deploy2iyVwm -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/fake-vtj.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/fake-vtj/ -e host=tun-pub-beprx1 ", "delta": "0:00:04.184531", "end": "2019-04-03 14:34:57.610030", "rc": 0, "start": "2019-04-03 14:34:53.425499", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Fill fake-vtj.properties] ***********************************\nchanged: [localhost]\n\nTASK [create_tar : Fill services.json] *****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy keystore] **********************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=5 changed=4 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Fill fake-vtj.properties] ***********************************", "changed: [localhost]", "", "TASK [create_tar : Fill services.json] *****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy keystore] **********************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=5 changed=4 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
544
545TASK [e-identification-deploy : Copy filled templates] *************************
546changed: [localhost] => {"changed": true, "checksum": "32b02ac21362929ca7c9f4a9d2ce0ee495ffb6d8", "dest": "/home/otto/build/deploy/fake-vtj/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "b150617039b328aea29824a8a4499d95", "mode": "0644", "owner": "root", "size": 5046, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291297.86-27257495102574/source", "state": "file", "uid": 0}
547
548TASK [e-identification-deploy : Delete tempdir] ********************************
549changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deploy2iyVwm", "state": "absent"}
550
551TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
552changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/fake-vtj/ -zxf /home/otto/build/deploy/fake-vtj//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/fake-vtj//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-fake-vtj:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/fake-vtj//git-info\n rm -rf /tmp/deploy2iyVwm", "delta": "0:00:00.078814", "end": "2019-04-03 14:34:59.594186", "rc": 0, "start": "2019-04-03 14:34:59.515372", "stderr": "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\nKeyError: 'build-tag'", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
553
554TASK [e-identification-deploy : Set access rights] *****************************
555changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/fake-vtj/", "size": 4096, "state": "directory", "uid": 0}
556
557TASK [e-identification-deploy : Set directory access rights] *******************
558changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/fake-vtj/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.014251", "end": "2019-04-03 14:35:00.387026", "rc": 0, "start": "2019-04-03 14:35:00.372775", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
559
560TASK [e-identification-deploy : Run new docker image] **************************
561changed: [localhost] => {"changed": true, "cmd": "docker stop fake-vtj-container | cat # pipecat igrores errors\n docker rm fake-vtj-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8041:8080 -p 8043:8081 -p 8046:8082 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=fake-vtj-container -v /home/otto/build/deploy/fake-vtj/:/data00/deploy:z -v /home/otto/build/deploy/logs/fake-vtj/:/data00/logs:z -v /var/run/docker.sock:/var/run/docker.sock:z -v /home/otto/build/deploy/logs:/tmp/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-fake-vtj:local", "delta": "0:00:10.949754", "end": "2019-04-03 14:35:11.665194", "rc": 0, "start": "2019-04-03 14:35:00.715440", "stderr": "", "stdout": "fake-vtj-container\nfake-vtj-container\n61daf2ed7725954a08d66b50cf37e872e9bb46a91e0e85628973e57b5d084108", "stdout_lines": ["fake-vtj-container", "fake-vtj-container", "61daf2ed7725954a08d66b50cf37e872e9bb46a91e0e85628973e57b5d084108"], "warnings": []}
562
563PLAY ***************************************************************************
564skipping: no hosts matched
565
566PLAY ***************************************************************************
567
568TASK [setup] *******************************************************************
569ok: [localhost]
570
571TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-feedback:local] ***
572skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
573
574TASK [e-identification-deploy : Create local tempdir] **************************
575changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.003671", "end": "2019-04-03 14:35:13.598674", "rc": 0, "start": "2019-04-03 14:35:13.595003", "stderr": "", "stdout": "/tmp/deploygimlEt", "stdout_lines": ["/tmp/deploygimlEt"], "warnings": []}
576
577TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
578changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deploygimlEt\n mkdir /tmp/deploygimlEt/filled\n echo 2019-04-03T11:35:13Z| tee /tmp/deploygimlEt/filled/git-info\n echo Config: | tee -a /tmp/deploygimlEt/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deploygimlEt/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deploygimlEt/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deploygimlEt/filled/git-info", "delta": "0:00:00.033332", "end": "2019-04-03 14:35:14.102199", "rc": 0, "start": "2019-04-03 14:35:14.068867", "stderr": "", "stdout": "2019-04-03T11:35:13Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:35:13Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
579
580TASK [e-identification-deploy : Get templates from container to host] **********
581changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/feedback/\n mkdir -p /home/otto/build/deploy/logs/e-identification-feedback/\n mkdir -p /tmp/deploygimlEt\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deploygimlEt:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-feedback:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:01.017637", "end": "2019-04-03 14:35:15.644619", "rc": 0, "start": "2019-04-03 14:35:14.626982", "stderr": "", "stdout": "./\n./feedback.yml.template\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml", "stdout_lines": ["./", "./feedback.yml.template", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
582
583TASK [e-identification-deploy : Fetch template tarball] ************************
584ok: [localhost] => {"changed": false, "checksum": "c288b69d8d319c69a5f4676872fde1fdb5c663a1", "dest": "/tmp/deploygimlEt/templates.tgz", "file": "/tmp/deploygimlEt/templates.tgz", "md5sum": "7178c5d98594125816ccfd534ded8928"}
585
586TASK [e-identification-deploy : Fill templates] ********************************
587changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deploygimlEt/ -zxf /tmp/deploygimlEt/templates.tgz\n mkdir -p /tmp/deploygimlEt/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deploygimlEt/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/feedback.yml /tmp/deploygimlEt/ansible/group_vars/all\n ansible-playbook /tmp/deploygimlEt/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deploygimlEt -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/feedback.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/feedback/ -e host=tun-pub-cache1 ", "delta": "0:00:02.419258", "end": "2019-04-03 14:35:18.851553", "rc": 0, "start": "2019-04-03 14:35:16.432295", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Create necessary directories] *******************************\nchanged: [localhost -> localhost] => (item=/tmp/deploygimlEt/filled/config/)\nchanged: [localhost -> localhost] => (item=/tmp/deploygimlEt/filled/ssl/)\n\nTASK [create_tar : Fill feedback.yml] ******************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy ssl key] ***********************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy ssl cert] **********************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=6 changed=5 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Create necessary directories] *******************************", "changed: [localhost -> localhost] => (item=/tmp/deploygimlEt/filled/config/)", "changed: [localhost -> localhost] => (item=/tmp/deploygimlEt/filled/ssl/)", "", "TASK [create_tar : Fill feedback.yml] ******************************************", "changed: [localhost]", "", "TASK [create_tar : Copy ssl key] ***********************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy ssl cert] **********************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=6 changed=5 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
588
589TASK [e-identification-deploy : Copy filled templates] *************************
590changed: [localhost] => {"changed": true, "checksum": "01268c4ebac3038ece7e6a23c66366edde8328d9", "dest": "/home/otto/build/deploy/feedback/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "9dd07d874ecdefb637d6a4acaa4ca661", "mode": "0644", "owner": "root", "size": 3403, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291319.01-31290059101812/source", "state": "file", "uid": 0}
591
592TASK [e-identification-deploy : Delete tempdir] ********************************
593changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deploygimlEt", "state": "absent"}
594
595TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
596changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/feedback/ -zxf /home/otto/build/deploy/feedback//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/feedback//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-feedback:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/feedback//git-info\n rm -rf /tmp/deploygimlEt", "delta": "0:00:00.042463", "end": "2019-04-03 14:35:19.670066", "rc": 0, "start": "2019-04-03 14:35:19.627603", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
597
598TASK [e-identification-deploy : Set access rights] *****************************
599changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/feedback/", "size": 4096, "state": "directory", "uid": 0}
600
601TASK [e-identification-deploy : Set directory access rights] *******************
602changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/feedback/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.009198", "end": "2019-04-03 14:35:20.140142", "rc": 0, "start": "2019-04-03 14:35:20.130944", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
603
604TASK [e-identification-deploy : Run new docker image] **************************
605changed: [localhost] => {"changed": true, "cmd": "docker stop e-identification-feedback-container | cat # pipecat igrores errors\n docker rm e-identification-feedback-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8039:8443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=e-identification-feedback-container -v /home/otto/build/deploy/feedback//config:/data00/deploy/config:z -v /home/otto/build/deploy/feedback//ssl:/data00/deploy/ssl:z -v /home/otto/build/deploy/logs/e-identification-feedback/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-feedback:local", "delta": "0:00:10.903160", "end": "2019-04-03 14:35:31.250058", "rc": 0, "start": "2019-04-03 14:35:20.346898", "stderr": "", "stdout": "e-identification-feedback-container\ne-identification-feedback-container\n421cb479a2dd7478185de86440f9ce6d6478d90263863637ef0d87d6c42dbb09", "stdout_lines": ["e-identification-feedback-container", "e-identification-feedback-container", "421cb479a2dd7478185de86440f9ce6d6478d90263863637ef0d87d6c42dbb09"], "warnings": []}
606
607PLAY ***************************************************************************
608skipping: no hosts matched
609
610PLAY ***************************************************************************
611skipping: no hosts matched
612
613PLAY ***************************************************************************
614
615TASK [setup] *******************************************************************
616ok: [localhost]
617
618TASK [e-identification-apro-certs : Create necessary directories] **************
619ok: [localhost] => (item=/home/otto/build/deploy/test-service/) => {"changed": false, "gid": 1000, "group": "otto", "item": "/home/otto/build/deploy/test-service/", "mode": "0755", "owner": "otto", "path": "/home/otto/build/deploy/test-service/", "size": 4096, "state": "directory", "uid": 1000}
620
621TASK [e-identification-apro-certs : Copy truststore] ***************************
622ok: [localhost] => {"changed": false, "checksum": "9e7d553c441fa94b17d43ca9e748a132d25e8f87", "dest": "/home/otto/build/deploy/test-service//kapa-ca", "gid": 1000, "group": "otto", "mode": "0644", "owner": "otto", "path": "/home/otto/build/deploy/test-service//kapa-ca", "size": 1514, "state": "file", "uid": 1000}
623
624TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-test-service:local] ***
625skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
626
627TASK [e-identification-deploy : Create local tempdir] **************************
628changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.009384", "end": "2019-04-03 14:35:33.268508", "rc": 0, "start": "2019-04-03 14:35:33.259124", "stderr": "", "stdout": "/tmp/deployoKP3CW", "stdout_lines": ["/tmp/deployoKP3CW"], "warnings": []}
629
630TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
631changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deployoKP3CW\n mkdir /tmp/deployoKP3CW/filled\n echo 2019-04-03T11:35:32Z| tee /tmp/deployoKP3CW/filled/git-info\n echo Config: | tee -a /tmp/deployoKP3CW/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deployoKP3CW/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deployoKP3CW/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deployoKP3CW/filled/git-info", "delta": "0:00:00.023754", "end": "2019-04-03 14:35:33.541703", "rc": 0, "start": "2019-04-03 14:35:33.517949", "stderr": "", "stdout": "2019-04-03T11:35:32Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:35:32Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
632
633TASK [e-identification-deploy : Get templates from container to host] **********
634changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/test-service/\n mkdir -p /home/otto/build/deploy/logs/test-service/\n mkdir -p /tmp/deployoKP3CW\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deployoKP3CW:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-test-service:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.724554", "end": "2019-04-03 14:35:34.408951", "rc": 0, "start": "2019-04-03 14:35:33.684397", "stderr": "", "stdout": "./\n./uloskirjautunut.html.template\n./virhe.html.template\n./index.html.template\n./tunnistautunut.ftlh.template\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./log4j.properties.template\n./sp-setenv.sh.template\n./service-provider.properties.template\n./default-ssl.conf.template\n./shibboleth2.xml.template", "stdout_lines": ["./", "./uloskirjautunut.html.template", "./virhe.html.template", "./index.html.template", "./tunnistautunut.ftlh.template", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./log4j.properties.template", "./sp-setenv.sh.template", "./service-provider.properties.template", "./default-ssl.conf.template", "./shibboleth2.xml.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
635
636TASK [e-identification-deploy : Fetch template tarball] ************************
637ok: [localhost] => {"changed": false, "checksum": "1f6d1758cd57462a5de1cffa1b1a67b501cbd7e5", "dest": "/tmp/deployoKP3CW/templates.tgz", "file": "/tmp/deployoKP3CW/templates.tgz", "md5sum": "15f911f226575c704705298a52f582f1"}
638
639TASK [e-identification-deploy : Fill templates] ********************************
640changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deployoKP3CW/ -zxf /tmp/deployoKP3CW/templates.tgz\n mkdir -p /tmp/deployoKP3CW/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deployoKP3CW/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/test-service.yml /tmp/deployoKP3CW/ansible/group_vars/all\n ansible-playbook /tmp/deployoKP3CW/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deployoKP3CW -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/test-service.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/test-service/ -e host=tun-pub-router1 ", "delta": "0:00:04.589517", "end": "2019-04-03 14:35:39.482292", "rc": 0, "start": "2019-04-03 14:35:34.892775", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using file module with state=directory rather than running\nmkdir\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Copy Shibboleth config template] ****************************\nchanged: [localhost]\n\nTASK [create_tar : Copy sp-setenv.sh] ******************************************\nchanged: [localhost]\n\nTASK [create_tar : Create dirs] ************************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy root cert file] ****************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Apache SSL cert file] **********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Apache SSL key file] ***********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Apache SSL config] *************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Shibboleth metadata cert] ******************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth metadata key] *******************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Service Provider properties] ***************************\nchanged: [localhost]\n\nTASK [create_tar : Copy log4j.properties] **************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy html / index] ******************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy html / virhe] ******************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy html / uloskirjautunut] ********************************\nchanged: [localhost]\n\nTASK [create_tar : Copy freemarker template / tunnistautunut] ******************\nchanged: [localhost]\n\nTASK [create_tar : Copy idp metadata] ******************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=18 changed=17 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Copy Shibboleth config template] ****************************", "changed: [localhost]", "", "TASK [create_tar : Copy sp-setenv.sh] ******************************************", "changed: [localhost]", "", "TASK [create_tar : Create dirs] ************************************************", "changed: [localhost]", "", "TASK [create_tar : Copy root cert file] ****************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Apache SSL cert file] **********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Apache SSL key file] ***********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Apache SSL config] *************************************", "changed: [localhost]", "", "TASK [create_tar : Copy Shibboleth metadata cert] ******************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth metadata key] *******************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Service Provider properties] ***************************", "changed: [localhost]", "", "TASK [create_tar : Copy log4j.properties] **************************************", "changed: [localhost]", "", "TASK [create_tar : Copy html / index] ******************************************", "changed: [localhost]", "", "TASK [create_tar : Copy html / virhe] ******************************************", "changed: [localhost]", "", "TASK [create_tar : Copy html / uloskirjautunut] ********************************", "changed: [localhost]", "", "TASK [create_tar : Copy freemarker template / tunnistautunut] ******************", "changed: [localhost]", "", "TASK [create_tar : Copy idp metadata] ******************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=18 changed=17 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
641
642TASK [e-identification-deploy : Copy filled templates] *************************
643changed: [localhost] => {"changed": true, "checksum": "d590928db8d270a51f363f9e3583cb6202f1ba5b", "dest": "/home/otto/build/deploy/test-service/filled_templates.tgz", "gid": 1000, "group": "otto", "md5sum": "72cb7a21141c2f63e01f6c0a5e7bf3c8", "mode": "0644", "owner": "otto", "size": 20709, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291339.62-211755592989850/source", "state": "file", "uid": 1000}
644
645TASK [e-identification-deploy : Delete tempdir] ********************************
646changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deployoKP3CW", "state": "absent"}
647
648TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
649changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/test-service/ -zxf /home/otto/build/deploy/test-service//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/test-service//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-test-service:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/test-service//git-info\n rm -rf /tmp/deployoKP3CW", "delta": "0:00:00.053374", "end": "2019-04-03 14:35:40.207372", "rc": 0, "start": "2019-04-03 14:35:40.153998", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
650
651TASK [e-identification-deploy : Set access rights] *****************************
652changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/test-service/", "size": 4096, "state": "directory", "uid": 0}
653
654TASK [e-identification-deploy : Set directory access rights] *******************
655changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/test-service/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.006609", "end": "2019-04-03 14:35:40.608162", "rc": 0, "start": "2019-04-03 14:35:40.601553", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
656
657TASK [e-identification-deploy : Run new docker image] **************************
658changed: [localhost] => {"changed": true, "cmd": "docker stop test-service-container | cat # pipecat igrores errors\n docker rm test-service-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 192.168.100.3:443:443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=test-service-container -v /home/otto/build/deploy/test-service/:/data00/deploy:z -v /home/otto/build/deploy/logs/test-service/:/data00/logs:z -v /home/otto/build/deploy/test-service//certs:/etc/ssl/certs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-test-service:local", "delta": "0:00:10.949679", "end": "2019-04-03 14:35:51.763808", "rc": 0, "start": "2019-04-03 14:35:40.814129", "stderr": "", "stdout": "test-service-container\ntest-service-container\nd908c60d3587437d42ae9aae40e64a4039f7b06837081965befb4dbe18ab3b2c", "stdout_lines": ["test-service-container", "test-service-container", "d908c60d3587437d42ae9aae40e64a4039f7b06837081965befb4dbe18ab3b2c"], "warnings": []}
659
660PLAY ***************************************************************************
661skipping: no hosts matched
662
663PLAY ***************************************************************************
664
665TASK [setup] *******************************************************************
666ok: [localhost]
667
668TASK [e-identification-apro-certs : Create necessary directories] **************
669ok: [localhost] => (item=/home/otto/build/deploy/vartti/) => {"changed": false, "gid": 0, "group": "root", "item": "/home/otto/build/deploy/vartti/", "mode": "0755", "owner": "root", "path": "/home/otto/build/deploy/vartti/", "size": 4096, "state": "directory", "uid": 0}
670
671TASK [e-identification-apro-certs : Copy truststore] ***************************
672ok: [localhost] => {"changed": false, "checksum": "9e7d553c441fa94b17d43ca9e748a132d25e8f87", "dest": "/home/otto/build/deploy/vartti//kapa-ca", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/vartti//kapa-ca", "size": 1514, "state": "file", "uid": 0}
673
674TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vartti-client:local] ***
675skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
676
677TASK [e-identification-deploy : Create local tempdir] **************************
678changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.003277", "end": "2019-04-03 14:35:53.854202", "rc": 0, "start": "2019-04-03 14:35:53.850925", "stderr": "", "stdout": "/tmp/deploye7ja0C", "stdout_lines": ["/tmp/deploye7ja0C"], "warnings": []}
679
680TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
681changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deploye7ja0C\n mkdir /tmp/deploye7ja0C/filled\n echo 2019-04-03T11:35:52Z| tee /tmp/deploye7ja0C/filled/git-info\n echo Config: | tee -a /tmp/deploye7ja0C/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deploye7ja0C/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deploye7ja0C/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deploye7ja0C/filled/git-info", "delta": "0:00:00.011032", "end": "2019-04-03 14:35:54.056329", "rc": 0, "start": "2019-04-03 14:35:54.045297", "stderr": "", "stdout": "2019-04-03T11:35:52Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:35:52Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
682
683TASK [e-identification-deploy : Get templates from container to host] **********
684changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/vartti/\n mkdir -p /home/otto/build/deploy/logs/vartti-client/\n mkdir -p /tmp/deploye7ja0C\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deploye7ja0C:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vartti-client:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.710695", "end": "2019-04-03 14:35:55.012829", "rc": 0, "start": "2019-04-03 14:35:54.302134", "stderr": "", "stdout": "./\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./logback.xml.template\n./setenv.sh.template\n./server.xml.template\n./vartti-client.properties.template", "stdout_lines": ["./", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./logback.xml.template", "./setenv.sh.template", "./server.xml.template", "./vartti-client.properties.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
685
686TASK [e-identification-deploy : Fetch template tarball] ************************
687ok: [localhost] => {"changed": false, "checksum": "37a8e8bd708973bc77f1f91d6a8250029447a07b", "dest": "/tmp/deploye7ja0C/templates.tgz", "file": "/tmp/deploye7ja0C/templates.tgz", "md5sum": "2b1c9007bd8a62b9eb84f51cde916898"}
688
689TASK [e-identification-deploy : Fill templates] ********************************
690changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deploye7ja0C/ -zxf /tmp/deploye7ja0C/templates.tgz\n mkdir -p /tmp/deploye7ja0C/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deploye7ja0C/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/vartti.yml /tmp/deploye7ja0C/ansible/group_vars/all\n ansible-playbook /tmp/deploye7ja0C/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deploye7ja0C -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/vartti.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/vartti/ -e host=tun-pub-beprx1 ", "delta": "0:00:02.884464", "end": "2019-04-03 14:35:58.358855", "rc": 0, "start": "2019-04-03 14:35:55.474391", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Copy vartti-client.properties] ******************************\nchanged: [localhost]\n\nTASK [create_tar : Copy tomcat server.xml] *************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy setenv.sh] *********************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy logback configuration] *********************************\nchanged: [localhost]\n\nTASK [create_tar : Copy tomcat keystore (internal cert)] ***********************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy vartti-client-keystore (vartti api client certificate + key)] ***\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy vartti-client-truststore (vartti api remote certificate)] ***\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=9 changed=8 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Copy vartti-client.properties] ******************************", "changed: [localhost]", "", "TASK [create_tar : Copy tomcat server.xml] *************************************", "changed: [localhost]", "", "TASK [create_tar : Copy setenv.sh] *********************************************", "changed: [localhost]", "", "TASK [create_tar : Copy logback configuration] *********************************", "changed: [localhost]", "", "TASK [create_tar : Copy tomcat keystore (internal cert)] ***********************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy vartti-client-keystore (vartti api client certificate + key)] ***", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy vartti-client-truststore (vartti api remote certificate)] ***", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=9 changed=8 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
691
692TASK [e-identification-deploy : Copy filled templates] *************************
693changed: [localhost] => {"changed": true, "checksum": "4cc6ecfd06b5c64c1c508ea80ed427833645ce78", "dest": "/home/otto/build/deploy/vartti/filled_templates.tgz", "gid": 0, "group": "root", "md5sum": "54c459cf3b54b6fe07c6714c6fe493f5", "mode": "0644", "owner": "root", "size": 10549, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291358.55-94869990524122/source", "state": "file", "uid": 0}
694
695TASK [e-identification-deploy : Delete tempdir] ********************************
696changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deploye7ja0C", "state": "absent"}
697
698TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
699changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/vartti/ -zxf /home/otto/build/deploy/vartti//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/vartti//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vartti-client:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/vartti//git-info\n rm -rf /tmp/deploye7ja0C", "delta": "0:00:00.053946", "end": "2019-04-03 14:35:59.360487", "rc": 0, "start": "2019-04-03 14:35:59.306541", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
700
701TASK [e-identification-deploy : Set access rights] *****************************
702changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/vartti/", "size": 4096, "state": "directory", "uid": 0}
703
704TASK [e-identification-deploy : Set directory access rights] *******************
705changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/vartti/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.003881", "end": "2019-04-03 14:35:59.815094", "rc": 0, "start": "2019-04-03 14:35:59.811213", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
706
707TASK [e-identification-deploy : Run new docker image] **************************
708changed: [localhost] => {"changed": true, "cmd": "docker stop vartti-client-container | cat # pipecat igrores errors\n docker rm vartti-client-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8047:8443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host varttiservice.test:192.168.100.4 --name=vartti-client-container -v /home/otto/build/deploy/vartti/:/data00/deploy:z -v /home/otto/build/deploy/logs/vartti-client/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-vartti-client:local", "delta": "0:00:10.901428", "end": "2019-04-03 14:36:11.001157", "rc": 0, "start": "2019-04-03 14:36:00.099729", "stderr": "", "stdout": "vartti-client-container\nvartti-client-container\nf33466771b3ab95c2512932249e4542a558fdaf2b009350f7a14c0e1bd171678", "stdout_lines": ["vartti-client-container", "vartti-client-container", "f33466771b3ab95c2512932249e4542a558fdaf2b009350f7a14c0e1bd171678"], "warnings": []}
709
710PLAY ***************************************************************************
711skipping: no hosts matched
712
713PLAY ***************************************************************************
714skipping: no hosts matched
715
716PLAY ***************************************************************************
717
718TASK [setup] *******************************************************************
719ok: [localhost]
720
721TASK [e-identification-apro-certs : Create necessary directories] **************
722ok: [localhost] => (item=/home/otto/build/deploy/test-idp/) => {"changed": false, "gid": 1000, "group": "otto", "item": "/home/otto/build/deploy/test-idp/", "mode": "0755", "owner": "otto", "path": "/home/otto/build/deploy/test-idp/", "size": 4096, "state": "directory", "uid": 1000}
723
724TASK [e-identification-apro-certs : Copy truststore] ***************************
725ok: [localhost] => {"changed": false, "checksum": "9e7d553c441fa94b17d43ca9e748a132d25e8f87", "dest": "/home/otto/build/deploy/test-idp//kapa-ca", "gid": 1000, "group": "otto", "mode": "0644", "owner": "otto", "path": "/home/otto/build/deploy/test-idp//kapa-ca", "size": 1514, "state": "file", "uid": 1000}
726
727TASK [e-identification-deploy : Pull e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-test-idp:local] ***
728skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
729
730TASK [e-identification-deploy : Create local tempdir] **************************
731changed: [localhost -> localhost] => {"changed": true, "cmd": "mktemp -d --tmpdir=/tmp deployXXXXXX", "delta": "0:00:00.003884", "end": "2019-04-03 14:36:13.469580", "rc": 0, "start": "2019-04-03 14:36:13.465696", "stderr": "", "stdout": "/tmp/deployw2b7Av", "stdout_lines": ["/tmp/deployw2b7Av"], "warnings": []}
732
733TASK [e-identification-deploy : Prepare filled directory in tempdir] ***********
734changed: [localhost -> localhost] => {"changed": true, "cmd": "chmod 777 /tmp/deployw2b7Av\n mkdir /tmp/deployw2b7Av/filled\n echo 2019-04-03T11:36:12Z| tee /tmp/deployw2b7Av/filled/git-info\n echo Config: | tee -a /tmp/deployw2b7Av/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse --abbrev-ref HEAD | tee -a /tmp/deployw2b7Av/filled/git-info\n git -C /home/otto/build/src/e-identification-config-public/local-public rev-parse HEAD | tee -a /tmp/deployw2b7Av/filled/git-info\n basename /home/otto/build/src/e-identification-config-public/local-public | tee -a /tmp/deployw2b7Av/filled/git-info", "delta": "0:00:00.024436", "end": "2019-04-03 14:36:13.788201", "rc": 0, "start": "2019-04-03 14:36:13.763765", "stderr": "", "stdout": "2019-04-03T11:36:12Z\nConfig:\nmaster\n6121fd1df033fe1c02b3b54f32e02cb09ed24f7b\nlocal-public", "stdout_lines": ["2019-04-03T11:36:12Z", "Config:", "master", "6121fd1df033fe1c02b3b54f32e02cb09ed24f7b", "local-public"], "warnings": ["Consider using file module with mode rather than running chmod"]}
735
736TASK [e-identification-deploy : Get templates from container to host] **********
737changed: [localhost] => {"changed": true, "cmd": "mkdir -p /home/otto/build/deploy/test-idp/\n mkdir -p /home/otto/build/deploy/logs/e-identification-test-idp/\n mkdir -p /tmp/deployw2b7Av\n docker run --log-opt max-size=100m --log-opt max-file=10 --rm=true --entrypoint=tar -v /tmp/deployw2b7Av:/data00/templates/target:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-test-idp:local -C /data00/templates/store/ -zvcf /data00/templates/target/templates.tgz .", "delta": "0:00:00.784206", "end": "2019-04-03 14:36:14.942955", "rc": 0, "start": "2019-04-03 14:36:14.158749", "stderr": "", "stdout": "./\n./access-control.xml.template\n./ansible/\n./ansible/create_tar.yml\n./ansible/roles/\n./ansible/roles/create_tar/\n./ansible/roles/create_tar/tasks/\n./ansible/roles/create_tar/tasks/main.yml\n./webapp_error.jsp.template\n./idp-install.sh.template\n./metadata-providers.xml.template\n./shibboleth_logback.xml.template\n./idp.properties.template\n./server.xml.template\n./idp-install.properties.template\n./fake-identity-provider.properties.template\n./idp-setenv.sh.template\n./views_error.jsp.template", "stdout_lines": ["./", "./access-control.xml.template", "./ansible/", "./ansible/create_tar.yml", "./ansible/roles/", "./ansible/roles/create_tar/", "./ansible/roles/create_tar/tasks/", "./ansible/roles/create_tar/tasks/main.yml", "./webapp_error.jsp.template", "./idp-install.sh.template", "./metadata-providers.xml.template", "./shibboleth_logback.xml.template", "./idp.properties.template", "./server.xml.template", "./idp-install.properties.template", "./fake-identity-provider.properties.template", "./idp-setenv.sh.template", "./views_error.jsp.template"], "warnings": ["Consider using file module with state=directory rather than running mkdir"]}
738
739TASK [e-identification-deploy : Fetch template tarball] ************************
740ok: [localhost] => {"changed": false, "checksum": "ee1f45c1281d02cf48927fee9a5a41ca72628b2d", "dest": "/tmp/deployw2b7Av/templates.tgz", "file": "/tmp/deployw2b7Av/templates.tgz", "md5sum": "a801cce02392dfeeac61ddb59c65fb06"}
741
742TASK [e-identification-deploy : Fill templates] ********************************
743changed: [localhost -> localhost] => {"changed": true, "cmd": "tar -C /tmp/deployw2b7Av/ -zxf /tmp/deployw2b7Av/templates.tgz\n mkdir -p /tmp/deployw2b7Av/ansible/group_vars/\n cp -r /home/otto/build/src/e-identification-config-public/deploy/group_vars/all /tmp/deployw2b7Av/ansible/group_vars/\n cp /home/otto/build/src/e-identification-config-public/deploy/group_vars/test-idp.yml /tmp/deployw2b7Av/ansible/group_vars/all\n ansible-playbook /tmp/deployw2b7Av/ansible/create_tar.yml -e conf_root=/home/otto/build/src/e-identification-config-public/local-public -e tempdir=/tmp/deployw2b7Av -e local_variables=/home/otto/build/src/e-identification-config-public/local-public/local_configs/local_variables.yml -e aprovarsfile=/home/otto/build/src/e-identification-config-public/local-public/configs/test-idp.yml -e infrafile=/home/otto/build/src/e-identification-config-public/local-public/configs/infra.yml -e confdir=/home/otto/build/src/e-identification-config-public/local-public/configs/test-idp/ -e host=tun-pub-adap1 ", "delta": "0:00:06.411302", "end": "2019-04-03 14:36:21.953175", "rc": 0, "start": "2019-04-03 14:36:15.541873", "stderr": " [WARNING]: provided hosts list is empty, only localhost is available\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and \nmake sure become_method is 'sudo' (default). This feature will be removed in a \nfuture release. Deprecation warnings can be disabled by setting \ndeprecation_warnings=False in ansible.cfg.\n [WARNING]: Consider using file module with state=directory rather than running\nmkdir\n [WARNING]: Consider using unarchive module rather than running tar", "stdout": "\nPLAY ***************************************************************************\n\nTASK [setup] *******************************************************************\nok: [localhost]\n\nTASK [create_tar : Create necessary directories] *******************************\nchanged: [localhost] => (item=/tmp/deployw2b7Av/filled)\nchanged: [localhost] => (item=/tmp/deployw2b7Av/filled/crt)\n\nTASK [create_tar : Copy Shibboleth install properties] *************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Shibboleth install script] *****************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider properties] **************************\nchanged: [localhost]\n\nTASK [create_tar : Copy Tomcat server.xml] *************************************\nchanged: [localhost]\n\nTASK [create_tar : Create credentials dir] *************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Create metadata dir] ****************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy tomcat_keystore] ***************************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth credentials] ********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Shibboleth metadata] ***********************************\nchanged: [localhost -> localhost]\n\nTASK [create_tar : Copy Identity Provider access-control.xml] ******************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider idp.properties] **********************\nchanged: [localhost]\n\nTASK [create_tar : Copy Identity Provider metadata-providers.xml] **************\nchanged: [localhost]\n\nTASK [create_tar : Copy Shib error.jsp] ****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy tomcat error.jsp] **************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy idp-setenv.sh] *****************************************\nchanged: [localhost]\n\nTASK [create_tar : Copy shibboleth_logback.xml] ********************************\nchanged: [localhost]\n\nTASK [create_tar : Create filled template tar] *********************************\nchanged: [localhost -> localhost]\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=22 changed=21 unreachable=0 failed=0 ", "stdout_lines": ["", "PLAY ***************************************************************************", "", "TASK [setup] *******************************************************************", "ok: [localhost]", "", "TASK [create_tar : Create necessary directories] *******************************", "changed: [localhost] => (item=/tmp/deployw2b7Av/filled)", "changed: [localhost] => (item=/tmp/deployw2b7Av/filled/crt)", "", "TASK [create_tar : Copy Shibboleth install properties] *************************", "changed: [localhost]", "", "TASK [create_tar : Copy Shibboleth install script] *****************************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider properties] **************************", "changed: [localhost]", "", "TASK [create_tar : Copy Tomcat server.xml] *************************************", "changed: [localhost]", "", "TASK [create_tar : Create credentials dir] *************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Create metadata dir] ****************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy tomcat_keystore] ***************************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth credentials] ********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Shibboleth metadata] ***********************************", "changed: [localhost -> localhost]", "", "TASK [create_tar : Copy Identity Provider access-control.xml] ******************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider idp.properties] **********************", "changed: [localhost]", "", "TASK [create_tar : Copy Identity Provider metadata-providers.xml] **************", "changed: [localhost]", "", "TASK [create_tar : Copy Shib error.jsp] ****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy tomcat error.jsp] **************************************", "changed: [localhost]", "", "TASK [create_tar : Copy idp-setenv.sh] *****************************************", "changed: [localhost]", "", "TASK [create_tar : Copy shibboleth_logback.xml] ********************************", "changed: [localhost]", "", "TASK [create_tar : Create filled template tar] *********************************", "changed: [localhost -> localhost]", "", "PLAY RECAP *********************************************************************", "localhost : ok=22 changed=21 unreachable=0 failed=0 "], "warnings": ["Consider using unarchive module rather than running tar"]}
744
745TASK [e-identification-deploy : Copy filled templates] *************************
746changed: [localhost] => {"changed": true, "checksum": "b2aaa4ffaab6c526d35b9372a3023f65e9483c65", "dest": "/home/otto/build/deploy/test-idp/filled_templates.tgz", "gid": 1000, "group": "otto", "md5sum": "b23e3d7e56b74288b93acc1b2f6f19ad", "mode": "0644", "owner": "otto", "size": 18422, "src": "/home/otto/.ansible/tmp/ansible-tmp-1554291382.14-44461619500079/source", "state": "file", "uid": 1000}
747
748TASK [e-identification-deploy : Delete tempdir] ********************************
749changed: [localhost -> localhost] => {"changed": true, "path": "/tmp/deployw2b7Av", "state": "absent"}
750
751TASK [e-identification-deploy : Deploy filled templates, fill git-info and clean up] ***
752changed: [localhost] => {"changed": true, "cmd": "tar -C /home/otto/build/deploy/test-idp/ -zxf /home/otto/build/deploy/test-idp//filled_templates.tgz\n echo Image: | tee -a /home/otto/build/deploy/test-idp//git-info\n docker inspect e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-test-idp:local|python -c 'import sys, json; labels=json.load(sys.stdin)[0][\"Config\"][\"Labels\"]; print labels[\"build-tag\"] + \"\\n\" + labels[\"git-branch\"] + \"\\n\" + labels[\"git-commit\"]'| tee -a /home/otto/build/deploy/test-idp//git-info\n rm -rf /tmp/deployw2b7Av", "delta": "0:00:00.114762", "end": "2019-04-03 14:36:23.175566", "rc": 0, "start": "2019-04-03 14:36:23.060804", "stderr": "", "stdout": "Image:", "stdout_lines": ["Image:"], "warnings": ["Consider using unarchive module rather than running tar"]}
753
754TASK [e-identification-deploy : Set access rights] *****************************
755changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/test-idp/", "size": 4096, "state": "directory", "uid": 0}
756
757TASK [e-identification-deploy : Set directory access rights] *******************
758changed: [localhost] => {"changed": true, "cmd": ["find", "/home/otto/build/deploy/test-idp/", "-type", "d", "-exec", "chmod", "0755", "{}", ";"], "delta": "0:00:00.013506", "end": "2019-04-03 14:36:23.771805", "rc": 0, "start": "2019-04-03 14:36:23.758299", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
759
760TASK [e-identification-deploy : Run new docker image] **************************
761changed: [localhost] => {"changed": true, "cmd": "docker stop test-idp-container | cat # pipecat igrores errors\n docker rm test-idp-container | cat # pipecat igrores errors\n sudo docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 -d -p 8099:8443 --add-host tunnistaminen.test:192.168.100.1 --add-host kortti.tunnistaminen.test:192.168.100.2 --add-host tun-pub-sp1:192.168.100.1 --add-host tun-pub-idp1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-adap1:192.168.100.1 --add-host tun-pub-beprx1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --add-host tun-pub-cache1:192.168.100.1 --name=test-idp-container -v /home/otto/build/deploy/test-idp/:/data00/deploy:z -v /home/otto/build/deploy/logs/e-identification-test-idp/:/data00/logs:z e-identification-docker-virtual.vrk-artifactory-01.eden.csc.fi/e-identification-test-idp:local", "delta": "0:00:10.871975", "end": "2019-04-03 14:36:34.862504", "rc": 0, "start": "2019-04-03 14:36:23.990529", "stderr": "", "stdout": "test-idp-container\ntest-idp-container\nd77dfc2546754c27e854346d78a94854e44e491c237ae0090094fa0738847845", "stdout_lines": ["test-idp-container", "test-idp-container", "d77dfc2546754c27e854346d78a94854e44e491c237ae0090094fa0738847845"], "warnings": []}
762
763PLAY RECAP *********************************************************************
764localhost : ok=213 changed=152 unreachable=0 failed=0
765
766Using /etc/ansible/ansible.cfg as config file
767
768PLAY ***************************************************************************
769
770TASK [setup] *******************************************************************
771ok: [localhost]
772
773TASK [Copy service-sp-metadata.xml] ********************************************
774ok: [localhost] => {"changed": false, "checksum": "60931282b64c0429c62682da9347e3056519502b", "dest": "/home/otto/build/deploy/static//metadata/service-sp-metadata.xml", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/static//metadata/service-sp-metadata.xml", "size": 14638, "state": "file", "uid": 0}
775
776TASK [Restart docker container] ************************************************
777changed: [localhost] => {"changed": true, "cmd": "docker stop e-identification-static-container | cat # pipecat igrores errors\n docker start e-identification-static-container", "delta": "0:00:10.911376", "end": "2019-04-03 14:36:48.105675", "rc": 0, "start": "2019-04-03 14:36:37.194299", "stderr": "", "stdout": "e-identification-static-container\ne-identification-static-container", "stdout_lines": ["e-identification-static-container", "e-identification-static-container"], "warnings": []}
778
779PLAY ***************************************************************************
780
781TASK [setup] *******************************************************************
782ok: [localhost]
783
784TASK [e-identification-metadata-postgres : Create deploy dir] ******************
785ok: [localhost] => (item=/home/otto/build/deploy/metadata//pg_data) => {"changed": false, "gid": 0, "group": "root", "item": "/home/otto/build/deploy/metadata//pg_data", "mode": "0755", "owner": "root", "path": "/home/otto/build/deploy/metadata//pg_data", "size": 4096, "state": "directory", "uid": 0}
786
787TASK [e-identification-metadata-postgres : Copy database creation script] ******
788ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/home/otto/build/deploy/metadata//create_db.sql", "size": 14779, "state": "file", "uid": 0}
789
790TASK [e-identification-metadata-postgres : Stop old docker image] **************
791changed: [localhost] => {"changed": true, "cmd": "docker stop metadata-postgres", "delta": "0:00:00.365127", "end": "2019-04-03 14:36:51.112053", "rc": 0, "start": "2019-04-03 14:36:50.746926", "stderr": "", "stdout": "metadata-postgres", "stdout_lines": ["metadata-postgres"], "warnings": []}
792
793TASK [e-identification-metadata-postgres : Remove old docker image] ************
794changed: [localhost] => {"changed": true, "cmd": "docker rm metadata-postgres", "delta": "0:00:00.033973", "end": "2019-04-03 14:36:51.402020", "rc": 0, "start": "2019-04-03 14:36:51.368047", "stderr": "", "stdout": "metadata-postgres", "stdout_lines": ["metadata-postgres"], "warnings": []}
795
796TASK [e-identification-metadata-postgres : Run new docker image] ***************
797changed: [localhost] => {"changed": true, "cmd": "docker run --restart=on-failure:3 --log-opt max-size=100m --log-opt max-file=10 --name metadata-postgres -e POSTGRES_PASSWORD=vagrant -v /home/otto/build/deploy/metadata//create_db.sql:/create_db.sql:z -d -p 5432:5432 postgres", "delta": "0:00:00.670933", "end": "2019-04-03 14:36:52.389973", "rc": 0, "start": "2019-04-03 14:36:51.719040", "stderr": "", "stdout": "49b19f7da44ffd1b455255e890da9c599d2c984f0b97c52e9205d3ee4c228b6f", "stdout_lines": ["49b19f7da44ffd1b455255e890da9c599d2c984f0b97c52e9205d3ee4c228b6f"], "warnings": []}
798
799TASK [e-identification-metadata-postgres : Create DB] **************************
800FAILED - RETRYING: TASK: e-identification-metadata-postgres : Create DB (59 retries left). Result was: {u'changed': True, u'end': u'2019-04-03 14:36:53.093500', 'failed': True, u'stdout': u'psql: could not connect to server: No such file or directory\r\n\tIs the server running locally and accepting\r\n\tconnections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?', u'cmd': u'docker exec -t metadata-postgres su - postgres -c "psql -f /create_db.sql"', u'rc': 2, u'start': u'2019-04-03 14:36:52.666902', u'stderr': u'', u'delta': u'0:00:00.426598', 'invocation': {'module_name': u'command', u'module_args': {u'creates': None, u'executable': None, u'chdir': None, u'_raw_params': u'docker exec -t metadata-postgres su - postgres -c "psql -f /create_db.sql"', u'removes': None, u'warn': True, u'_uses_shell': True}}, 'stdout_lines': [u'psql: could not connect to server: No such file or directory', u'\tIs the server running locally and accepting', u'\tconnections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?'], u'warnings': []}
801FAILED - RETRYING: TASK: e-identification-metadata-postgres : Create DB (58 retries left). Result was: {u'changed': True, u'end': u'2019-04-03 14:36:54.714347', 'failed': True, u'stdout': u'psql: could not connect to server: No such file or directory\r\n\tIs the server running locally and accepting\r\n\tconnections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?', u'cmd': u'docker exec -t metadata-postgres su - postgres -c "psql -f /create_db.sql"', u'rc': 2, u'start': u'2019-04-03 14:36:54.340403', u'stderr': u'', u'delta': u'0:00:00.373944', 'invocation': {'module_name': u'command', u'module_args': {u'creates': None, u'executable': None, u'chdir': None, u'_raw_params': u'docker exec -t metadata-postgres su - postgres -c "psql -f /create_db.sql"', u'removes': None, u'warn': True, u'_uses_shell': True}}, 'stdout_lines': [u'psql: could not connect to server: No such file or directory', u'\tIs the server running locally and accepting', u'\tconnections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?'], u'warnings': []}
802changed: [localhost] => {"changed": true, "cmd": "docker exec -t metadata-postgres su - postgres -c \"psql -f /create_db.sql\"", "delta": "0:00:00.751644", "end": "2019-04-03 14:36:56.663501", "rc": 0, "start": "2019-04-03 14:36:55.911857", "stderr": "", "stdout": "CREATE ROLE\r\npsql:/create_db.sql:3: NOTICE: database \"metadata\" does not exist, skipping\r\nDROP DATABASE\r\nCREATE DATABASE\r\nGRANT\r\nALTER DATABASE\r\nYou are now connected to database \"metadata\" as user \"postgres\".\r\npsql:/create_db.sql:12: NOTICE: table \"metadata\" does not exist, skipping\r\nDROP TABLE\r\npsql:/create_db.sql:13: NOTICE: sequence \"hibernate_sequence\" does not exist, skipping\r\nDROP SEQUENCE\r\nCREATE SEQUENCE\r\nCREATE TABLE\r\nALTER TABLE\r\nALTER TABLE\r\nBEGIN\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nCOMMIT\r\npsql:/create_db.sql:93: NOTICE: table \"logincontext\" does not exist, skipping\r\nDROP TABLE\r\nCREATE TABLE\r\nALTER TABLE\r\nBEGIN\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 0\r\nINSERT 0 1\r\nINSERT 0 0\r\nINSERT 0 1\r\nINSERT 0 0\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 0\r\nINSERT 0 1\r\nCOMMIT\r\npsql:/create_db.sql:129: NOTICE: table \"country\" does not exist, skipping\r\nDROP TABLE\r\nCREATE TABLE\r\nALTER TABLE\r\nBEGIN\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nINSERT 0 1\r\nCOMMIT", "stdout_lines": ["CREATE ROLE", "psql:/create_db.sql:3: NOTICE: database \"metadata\" does not exist, skipping", "DROP DATABASE", "CREATE DATABASE", "GRANT", "ALTER DATABASE", "You are now connected to database \"metadata\" as user \"postgres\".", "psql:/create_db.sql:12: NOTICE: table \"metadata\" does not exist, skipping", "DROP TABLE", "psql:/create_db.sql:13: NOTICE: sequence \"hibernate_sequence\" does not exist, skipping", "DROP SEQUENCE", "CREATE SEQUENCE", "CREATE TABLE", "ALTER TABLE", "ALTER TABLE", "BEGIN", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "COMMIT", "psql:/create_db.sql:93: NOTICE: table \"logincontext\" does not exist, skipping", "DROP TABLE", "CREATE TABLE", "ALTER TABLE", "BEGIN", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 0", "INSERT 0 1", "INSERT 0 0", "INSERT 0 1", "INSERT 0 0", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 0", "INSERT 0 1", "COMMIT", "psql:/create_db.sql:129: NOTICE: table \"country\" does not exist, skipping", "DROP TABLE", "CREATE TABLE", "ALTER TABLE", "BEGIN", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "INSERT 0 1", "COMMIT"], "warnings": []}
803
804PLAY ***************************************************************************
805
806TASK [setup] *******************************************************************
807ok: [localhost]
808
809TASK [Copy Shibboleth relying-party.xml] ***************************************
810ok: [localhost] => {"changed": false, "checksum": "58618a053b020f8ec9ac72287617824936d6cdab", "dest": "/home/otto/build/deploy/idp//relying-party.xml", "gid": 1000, "group": "otto", "mode": "0600", "owner": "otto", "path": "/home/otto/build/deploy/idp//relying-party.xml", "size": 3215, "state": "file", "uid": 1000}
811
812TASK [Restart docker container] ************************************************
813changed: [localhost] => {"changed": true, "cmd": "docker stop identity-provider-container | cat # pipecat igrores errors\n docker start identity-provider-container", "delta": "0:00:10.773322", "end": "2019-04-03 14:37:09.360052", "rc": 0, "start": "2019-04-03 14:36:58.586730", "stderr": "", "stdout": "identity-provider-container\nidentity-provider-container", "stdout_lines": ["identity-provider-container", "identity-provider-container"], "warnings": []}
814
815PLAY ***************************************************************************
816
817TASK [setup] *******************************************************************
818ok: [localhost]
819
820TASK [Restart docker container] ************************************************
821changed: [localhost] => {"changed": true, "cmd": "docker stop proxy-server-container | cat # pipecat igrores errors\n docker start proxy-server-container", "delta": "0:00:10.849712", "end": "2019-04-03 14:37:21.468921", "rc": 0, "start": "2019-04-03 14:37:10.619209", "stderr": "", "stdout": "proxy-server-container\nproxy-server-container", "stdout_lines": ["proxy-server-container", "proxy-server-container"], "warnings": []}
822
823PLAY RECAP *********************************************************************
824localhost : ok=15 changed=7 unreachable=0 failed=0