-
-
Save sbeliakou/b7cbf7dabed6a63f694064ab1b51f228 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cloning into 'aliaksandr_mukhitdzinau'... | |
name: aliaksandr_mukhitdzinau, master/888572a @ 2021-03-11 08:28:34 +0000 | |
2021/03/13 22:11:45 config: tests/tomcat.yml | |
2021/03/13 22:11:45 verbosity: 2 | |
2021/03/13 22:11:45 ----------------------------------------------------------------------------------- | |
2021/03/13 22:11:45 Running '1.1 Tomcat', 1..16 tests | |
2021/03/13 22:11:45 ----------------------------------------------------------------------------------- | |
2021/03/13 22:11:57 ✓ [1.1 Tomcat] => playbook lint (ansible-lint) (1), 8.759s | |
2021/03/13 22:11:58 ✓ [1.1 Tomcat] => playbook syntax check (--syntax-check) (1), 1.141s | |
2021/03/13 22:14:29 ✓ [1.1 Tomcat] => apply playbook (3), 2m31.166s | |
2021/03/13 22:14:30 ✓ [1.1 Tomcat] => service process should run after rollout (2), 381ms | |
2021/03/13 22:14:37 ✓ [1.1 Tomcat] => responds 200 (2), 4.262s | |
2021/03/13 22:15:12 ✓ [1.1 Tomcat] => idempotency check (3), 34.789s | |
2021/03/13 22:15:13 ✓ [1.1 Tomcat] => should run after 2nd apply (2), 887ms | |
2021/03/13 22:15:13 ✓ [1.1 Tomcat] => shouldn't restart (3), 333ms | |
2021/03/13 22:15:13 ✓ [1.1 Tomcat] => service is enabled (1), 178ms | |
2021/03/13 22:15:13 ✓ [1.1 Tomcat] => 'tomcat_user' variable set as required (1), 66ms | |
2021/03/13 22:15:13 ✓ [1.1 Tomcat] => 'tomcat_group' variable set as required (1), 76ms | |
2021/03/13 22:17:58 ✓ [1.1 Tomcat] => service is running under non-priviliged user as per tomcat_user/tomcat_group (1), 2m44.379s | |
2021/03/13 22:17:58 ✓ [1.1 Tomcat] => 'tomcat_url' variable set as required (1), 64ms | |
2021/03/13 22:17:58 ✓ [1.1 Tomcat] => 'tomcat_home' variable set as required (1), 119ms | |
2021/03/13 22:20:42 ✓ [1.1 Tomcat] => can install into different home (1), 2m43.872s | |
2021/03/13 22:23:23 ✓ [1.1 Tomcat] => can apply under non-root user (3), 2m41.32s | |
2021/03/13 22:23:24 ----------------------------------------------------------------------------------- | |
2021/03/13 22:23:24 Tests Summary: | |
2021/03/13 22:23:24 16 (of 16) tests passed, 0 tests failed; rated as 100.00% | |
2021/03/13 22:23:24 | |
2021/03/13 22:23:24 Time Spent: 11m38.877s | |
2021/03/13 22:23:24 ----------------------------------------------------------------------------------- | |
name: aliaksandr_mukhitdzinau, master/888572a @ 2021-03-11 08:28:34 +0000 | |
2021/03/13 22:23:24 config: tests/webapp.yml | |
2021/03/13 22:23:24 verbosity: 2 | |
2021/03/13 22:23:24 ----------------------------------------------------------------------------------- | |
2021/03/13 22:23:24 Running '1.2 WebApp', 1..21 tests | |
2021/03/13 22:23:24 ----------------------------------------------------------------------------------- | |
2021/03/13 22:23:29 ✓ [1.2 WebApp] => playbook lint (ansible-lint) (1), 3.981s | |
2021/03/13 22:23:30 ✓ [1.2 WebApp] => playbook syntax check (--syntax-check) (1), 1.092s | |
2021/03/13 22:24:12 ✓ [1.2 WebApp] => apply plybook (2), 41.808s | |
2021/03/13 22:24:13 ✓ [1.2 WebApp] => 'webapp-server' is running (2), 469ms | |
2021/03/13 22:24:13 ✓ [1.2 WebApp] => service responds 200 (2), 207ms | |
2021/03/13 22:24:42 ✓ [1.2 WebApp] => playbook idempotency check (2), 28.851s | |
2021/03/13 22:24:42 ✓ [1.2 WebApp] => service shouldn't restart (2), 729ms | |
2021/03/13 22:24:43 ✓ [1.2 WebApp] => service should run after 2nd apply (2), 934ms | |
2021/03/13 22:24:44 ✓ [1.2 WebApp] => service is enabled (1), 313ms | |
2021/03/13 22:25:15 ✓ [1.2 WebApp] => can use 'student_first_name/student_last_name' variables (1), 31.273s | |
2021/03/13 22:30:43 ✗ [1.2 WebApp] -> can set custom port | |
2021/03/13 22:30:43 Result: exit status 1 | |
2021/03/13 22:30:43 Output: | |
(run, /tmp/students-1/aliaksandr_mukhitdzinau/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -e student_first_name=Alfonso -e student_last_name=Beumer -e webapp_port=8081 | |
rc: 2 | |
output: | | |
PLAY [Installing webapp-server] ************************************************ | |
TASK [Gathering Facts] ********************************************************* | |
[0;32mok: [web-server] | |
TASK [Create group "webapp-server"] ******************************************** | |
[0;32mok: [web-server] | |
TASK [Create user "webapp-server"] ********************************************* | |
[0;32mok: [web-server] | |
TASK [Create target binary directory] ****************************************** | |
[0;32mok: [web-server] | |
TASK [Create target conf directory] ******************************************** | |
[0;32mok: [web-server] | |
TASK [Download webapp-server] ************************************************** | |
[0;32mok: [web-server] | |
TASK [Symlink install directory] *********************************************** | |
[0;32mok: [web-server] | |
TASK [Copy Users Configuration] ************************************************ | |
[0;33mchanged: [web-server] | |
TASK [Copy webapp-server Service File] ***************************************** | |
[0;32mok: [web-server] | |
TASK [Ensure webapp-server Service Enabled and Running] ************************ | |
[0;32mok: [web-server] | |
TASK [Waiting some time for webserver become available] ************************ | |
[0;31mfatal: [web-server]: FAILED! => {"ansible_facts": {}, "changed": false, "elapsed": 300, "msg": "Timeout when waiting for 127.0.0.1:8081"} | |
RUNNING HANDLER [webapp-server restart] **************************************** | |
PLAY RECAP ********************************************************************* | |
[0;31mweb-server : [0;32mok=10 [0;33mchanged=1 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
CMD Failed: | |
2021/03/13 22:30:43 ✓ [1.2 WebApp] => use 'checksum' when downloading WebApp binary (get_url) (1), 56ms | |
2021/03/13 22:30:44 ✓ [1.2 WebApp] => service is running under 'webapp-server:webapp-server' (1), 1.051s | |
2021/03/13 22:30:44 ✓ [1.2 WebApp] => app/service user has no password set (1), 450ms | |
2021/03/13 22:30:44 ✓ [1.2 WebApp] => playbook has no hardcoded 'webapp_user' (1), 32ms | |
2021/03/13 22:30:44 ✓ [1.2 WebApp] => playbook has no hardcoded 'webapp_group' (1), 31ms | |
2021/03/13 22:31:22 ✓ [1.2 WebApp] => can use 'webapp_user/webapp_group' variables (1), 37.906s | |
2021/03/13 22:31:56 ✓ [1.2 WebApp] => can install into different home dir (1), 33.688s | |
2021/03/13 22:31:56 ✓ [1.2 WebApp] => can use different source url (1), 14ms | |
2021/03/13 22:32:26 ✓ [1.2 WebApp] => can apply under non-root user (1), 30.424s | |
2021/03/13 22:32:26 ✓ [1.2 WebApp] => playbook has 'handlers' (1), 15ms | |
2021/03/13 22:32:27 ----------------------------------------------------------------------------------- | |
2021/03/13 22:32:27 Tests Summary: | |
2021/03/13 22:32:27 20 (of 21) tests passed, 1 tests failed; rated as 96.30% | |
2021/03/13 22:32:27 | |
2021/03/13 22:32:27 Time Spent: 9m2.876s | |
2021/03/13 22:32:27 ----------------------------------------------------------------------------------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment