Skip to content

Instantly share code, notes, and snippets.

@sbeliakou
Created March 13, 2021 22:51
Show Gist options
  • Save sbeliakou/c084bbdc739816117e99991bb3f4715a to your computer and use it in GitHub Desktop.
Save sbeliakou/c084bbdc739816117e99991bb3f4715a to your computer and use it in GitHub Desktop.
Cloning into 'maksimelyan_tamashevich'...
name: maksimelyan_tamashevich, master/9b8dc97 @ 2021-03-11 21:57:41 +0000
2021/03/13 22:49:02 config: tests/encryption.yml
2021/03/13 22:49:02 verbosity: 2
2021/03/13 22:49:02 -----------------------------------------------------------------------------------
2021/03/13 22:49:02 Running '2.1 Working with Secrets', 1..8 tests
2021/03/13 22:49:02 -----------------------------------------------------------------------------------
2021/03/13 22:49:02 ✓ [2.1 Working with Secrets] => 'spoiler1' decrypted correctly (1), 8ms
2021/03/13 22:49:02 ✓ [2.1 Working with Secrets] => 'spoiler2' decrypted correctly (1), 7ms
2021/03/13 22:49:02 ✓ [2.1 Working with Secrets] => 'spoiler3' decrypted correctly (1), 7ms
2021/03/13 22:49:02 ✓ [2.1 Working with Secrets] => 'spoiler4' decrypted correctly (1), 7ms
2021/03/13 22:49:03 ✓ [2.1 Working with Secrets] => 'secret1' encrypted with tag=dev (v1.2/AES256) (1), 35ms
2021/03/13 22:49:03 ✓ [2.1 Working with Secrets] => 'secret2' encrypted with tag=test (v1.2/AES256) (1), 26ms
2021/03/13 22:49:03 ✓ [2.1 Working with Secrets] => 'secret3' encrypted with tag=stage (v1.2/AES256) (1), 29ms
2021/03/13 22:49:03 ✓ [2.1 Working with Secrets] => 'secret4' encrypted with tag=prod (v1.2/AES256) (1), 25ms
2021/03/13 22:49:03 -----------------------------------------------------------------------------------
2021/03/13 22:49:03 Tests Summary:
2021/03/13 22:49:03 8 (of 8) tests passed, 0 tests failed; rated as 100.00%
2021/03/13 22:49:03
2021/03/13 22:49:03 Time Spent: 1.332s
2021/03/13 22:49:03 -----------------------------------------------------------------------------------
name: maksimelyan_tamashevich, master/9b8dc97 @ 2021-03-11 21:57:41 +0000
2021/03/13 22:49:03 config: tests/role-deps.yml
2021/03/13 22:49:03 verbosity: 2
2021/03/13 22:49:03 -----------------------------------------------------------------------------------
2021/03/13 22:49:03 Running '2.2 Role Dependencies', 1..17 tests
2021/03/13 22:49:03 -----------------------------------------------------------------------------------
2021/03/13 22:49:06 ✗ [2.2 Role Dependencies] -> 'base' linter
2021/03/13 22:49:06 Result: exit status 2
2021/03/13 22:49:06 Output:
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles
WARNING Listing 1 violation(s) that are fatal
unnamed-task: All tasks should be named
roles/base/tasks/main.yml:1 Task/Handler: debug msg=running base role
You can skip specific rules or tags by adding them to your configuration file:
# .ansible-lint
warn_list: # or 'skip_list' to silence them completely
- unnamed-task # All tasks should be named
Finished with 1 failure(s), 0 warning(s) on 8 files.
2021/03/13 22:49:08 ✗ [2.2 Role Dependencies] -> 'java' linter
2021/03/13 22:49:08 Result: exit status 2
2021/03/13 22:49:08 Output:
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles
WARNING Listing 1 violation(s) that are fatal
unnamed-task: All tasks should be named
roles/java/tasks/main.yml:1 Task/Handler: debug msg=running java role, install version {{ java_version }}
You can skip specific rules or tags by adding them to your configuration file:
# .ansible-lint
warn_list: # or 'skip_list' to silence them completely
- unnamed-task # All tasks should be named
Finished with 1 failure(s), 0 warning(s) on 8 files.
2021/03/13 22:49:11 ✗ [2.2 Role Dependencies] -> 'tomcat' linter
2021/03/13 22:49:11 Result: exit status 2
2021/03/13 22:49:11 Output:
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles
WARNING Listing 1 violation(s) that are fatal
unnamed-task: All tasks should be named
roles/tomcat/tasks/main.yml:1 Task/Handler: debug msg=running tomcat role, install version {{ tomcat_version }}
You can skip specific rules or tags by adding them to your configuration file:
# .ansible-lint
warn_list: # or 'skip_list' to silence them completely
- unnamed-task # All tasks should be named
Finished with 1 failure(s), 0 warning(s) on 8 files.
2021/03/13 22:49:13 ✗ [2.2 Role Dependencies] -> 'nginx-base' linter
2021/03/13 22:49:13 Result: exit status 2
2021/03/13 22:49:13 Output:
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles
WARNING Listing 1 violation(s) that are fatal
unnamed-task: All tasks should be named
roles/nginx-base/tasks/main.yml:1 Task/Handler: debug msg=running nginx-base role
You can skip specific rules or tags by adding them to your configuration file:
# .ansible-lint
warn_list: # or 'skip_list' to silence them completely
- unnamed-task # All tasks should be named
Finished with 1 failure(s), 0 warning(s) on 8 files.
2021/03/13 22:49:18 ✗ [2.2 Role Dependencies] -> 'nginx-custom' linter
2021/03/13 22:49:18 Result: exit status 2
2021/03/13 22:49:18 Output:
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles
WARNING Listing 1 violation(s) that are fatal
unnamed-task: All tasks should be named
roles/nginx-custom/tasks/main.yml:1 Task/Handler: debug msg=running nginx-custom role
You can skip specific rules or tags by adding them to your configuration file:
# .ansible-lint
warn_list: # or 'skip_list' to silence them completely
- unnamed-task # All tasks should be named
Finished with 1 failure(s), 0 warning(s) on 8 files.
2021/03/13 22:49:22 ✗ [2.2 Role Dependencies] -> 'user' linter
2021/03/13 22:49:22 Result: exit status 2
2021/03/13 22:49:22 Output:
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles
WARNING Listing 1 violation(s) that are fatal
unnamed-task: All tasks should be named
roles/user/tasks/main.yml:1 Task/Handler: debug msg=running user role. Create user {{ tomcat_user }} with home {{ tomcat_home }} and ID {{ tomcat_user_id }}
You can skip specific rules or tags by adding them to your configuration file:
# .ansible-lint
warn_list: # or 'skip_list' to silence them completely
- unnamed-task # All tasks should be named
Finished with 1 failure(s), 0 warning(s) on 8 files.
2021/03/13 22:49:22 ✓ [2.2 Role Dependencies] => 'tomcat' role depends on 'java' role (1), 8ms
2021/03/13 22:49:22 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'java' role with 'java_version' parameter (1), 8ms
2021/03/13 22:49:22 ✓ [2.2 Role Dependencies] => 'tomcat' role depends on 'user' role (1), 10ms
2021/03/13 22:49:23 ✗ [2.2 Role Dependencies] -> 'tomcat' role calls 'user' role with 'user_name' parameter
2021/03/13 22:49:23 Result: exit status 1
2021/03/13 22:49:23 Output:
2021/03/13 22:49:23 ✗ [2.2 Role Dependencies] -> 'tomcat' role calls 'user' role with 'user_id' parameter
2021/03/13 22:49:23 Result: exit status 1
2021/03/13 22:49:23 Output:
2021/03/13 22:49:23 ✗ [2.2 Role Dependencies] -> 'tomcat' role calls 'user' role with 'group_id' parameter
2021/03/13 22:49:23 Result: exit status 1
2021/03/13 22:49:23 Output:
2021/03/13 22:49:23 ✗ [2.2 Role Dependencies] -> 'tomcat' role calls 'user' role with 'user_home' parameter
2021/03/13 22:49:23 Result: exit status 1
2021/03/13 22:49:23 Output:
2021/03/13 22:49:23 ✓ [2.2 Role Dependencies] => 'tomcat' role depends on 'base' role (1), 10ms
2021/03/13 22:49:23 ✓ [2.2 Role Dependencies] => 'java' role depends on 'base' role (1), 11ms
2021/03/13 22:49:23 ✓ [2.2 Role Dependencies] => 'nginx-base' role depends on 'base' role (1), 9ms
2021/03/13 22:49:23 ✓ [2.2 Role Dependencies] => 'nginx-custom' role depends on 'nginx-base' role (1), 11ms
2021/03/13 22:49:23 -----------------------------------------------------------------------------------
2021/03/13 22:49:23 Tests Summary:
2021/03/13 22:49:23 7 (of 17) tests passed, 10 tests failed; rated as 41.18%
2021/03/13 22:49:23
2021/03/13 22:49:23 Time Spent: 19.292s
2021/03/13 22:49:23 -----------------------------------------------------------------------------------
name: maksimelyan_tamashevich, master/9b8dc97 @ 2021-03-11 21:57:41 +0000
2021/03/13 22:49:23 config: tests/base.yml
2021/03/13 22:49:23 verbosity: 2
2021/03/13 22:49:23 -----------------------------------------------------------------------------------
2021/03/13 22:49:23 Running '2.3 Base Role (centos 7)', 1..11 tests
2021/03/13 22:49:23 -----------------------------------------------------------------------------------
2021/03/13 22:49:25 ✗ [2.3 Base Role (centos 7)] -> Role Linter
2021/03/13 22:49:25 Result: exit status 1
2021/03/13 22:49:25 Output:
2021/03/13 22:49:26 ✗ [2.3 Base Role (centos 7)] -> playbook syntax check
2021/03/13 22:49:26 Result: exit status 4
2021/03/13 22:49:26 Output:
No config file found; using defaults
ERROR! Empty playbook, nothing to do
2021/03/13 22:49:26 ✗ [2.3 Base Role (centos 7)] -> apply role
2021/03/13 22:49:26 Result: exit status 1
2021/03/13 22:49:26 Output:
2021/03/13 22:49:26 ✗ [2.3 Base Role (centos 7)] -> idempotence check (apply the role twice)
2021/03/13 22:49:26 Result: exit status 1
2021/03/13 22:49:26 Output:
2021/03/13 22:49:26 ✓ [2.3 Base Role (centos 7)] => role installs 'epel' repo (1), 13ms
2021/03/13 22:49:26 ✓ [2.3 Base Role (centos 7)] => role installs 'curl' package (1), 14ms
2021/03/13 22:49:26 ✓ [2.3 Base Role (centos 7)] => role installs 'wget' package (1), 18ms
2021/03/13 22:49:26 ✓ [2.3 Base Role (centos 7)] => role installs 'sudo' package (1), 15ms
2021/03/13 22:49:26 ✓ [2.3 Base Role (centos 7)] => role installs 'iproute' package (1), 8ms
2021/03/13 22:49:26 ✓ [2.3 Base Role (centos 7)] => role installs 'python-pip' package (1), 18ms
2021/03/13 22:49:27 ✗ [2.3 Base Role (centos 7)] -> role creates ansible facts folder
2021/03/13 22:49:27 Result: exit status 1
2021/03/13 22:49:27 Output:
2021-03-13 22:37:53,241 p=20643 u=root n=ansible | ok: [centos7] => {"ansible_facts": {}, "changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0}
2021/03/13 22:49:27 -----------------------------------------------------------------------------------
2021/03/13 22:49:27 Tests Summary:
2021/03/13 22:49:27 6 (of 11) tests passed, 5 tests failed; rated as 31.58%
2021/03/13 22:49:27
2021/03/13 22:49:27 Time Spent: 4.518s
2021/03/13 22:49:27 -----------------------------------------------------------------------------------
name: maksimelyan_tamashevich, master/9b8dc97 @ 2021-03-11 21:57:41 +0000
2021/03/13 22:49:27 config: tests/user.yml
2021/03/13 22:49:27 verbosity: 2
2021/03/13 22:49:27 -----------------------------------------------------------------------------------
2021/03/13 22:49:27 Running '2.3 User Role (CentOS 7)', 1..17 tests
2021/03/13 22:49:27 -----------------------------------------------------------------------------------
2021/03/13 22:49:29 ✗ [2.3 User Role (CentOS 7)] -> Role Linter
2021/03/13 22:49:29 Result: exit status 1
2021/03/13 22:49:29 Output:
2021/03/13 22:49:31 ✗ [2.3 User Role (CentOS 7)] -> playbook syntax check
2021/03/13 22:49:31 Result: exit status 4
2021/03/13 22:49:31 Output:
No config file found; using defaults
ERROR! Empty playbook, nothing to do
2021/03/13 22:49:32 ✗ [2.3 User Role (CentOS 7)] -> apply role
2021/03/13 22:49:32 Result: exit status 1
2021/03/13 22:49:32 Output:
2021/03/13 22:49:32 ✗ [2.3 User Role (CentOS 7)] -> idempotence check (apply role twice)
2021/03/13 22:49:32 Result: exit status 1
2021/03/13 22:49:32 Output:
2021/03/13 22:49:33 ✗ [2.3 User Role (CentOS 7)] -> use "user_name" varaible
2021/03/13 22:49:33 Result: exit status 1
2021/03/13 22:49:33 Output:
id: debug1: no such user
2021/03/13 22:49:34 ✗ [2.3 User Role (CentOS 7)] -> use "user_name", "user_group" variables
2021/03/13 22:49:34 Result: exit status 1
2021/03/13 22:49:34 Output:
id: debug2: no such user
2021/03/13 22:49:34 ✗ [2.3 User Role (CentOS 7)] -> use "user_name", "user_id", "user_group" variables
2021/03/13 22:49:34 Result: exit status 1
2021/03/13 22:49:34 Output:
id: debug3: no such user
2021/03/13 22:49:35 ✗ [2.3 User Role (CentOS 7)] -> use "user_name", "user_id", "user_group", "user_gid" variables
2021/03/13 22:49:35 Result: exit status 1
2021/03/13 22:49:35 Output:
id: debug4: no such user
2021/03/13 22:49:35 ✗ [2.3 User Role (CentOS 7)] -> use "user_home" variable
2021/03/13 22:49:35 Result: exit status 1
2021/03/13 22:49:35 Output:
2021/03/13 22:49:36 ✗ [2.3 User Role (CentOS 7)] -> set correct home permissions
2021/03/13 22:49:36 Result: exit status 1
2021/03/13 22:49:36 Output:
stat: cannot stat ‘/opt/debug5_home’: No such file or directory
2021/03/13 22:49:36 ✗ [2.3 User Role (CentOS 7)] -> user owns its home directory
2021/03/13 22:49:36 Result: exit status 1
2021/03/13 22:49:36 Output:
stat: cannot stat ‘/opt/debug5_home’: No such file or directory
2021/03/13 22:49:37 ✗ [2.3 User Role (CentOS 7)] -> use "user_name" from play vars
2021/03/13 22:49:37 Result: exit status 1
2021/03/13 22:49:37 Output:
id: debug6: no such user
2021/03/13 22:49:38 ✗ [2.3 User Role (CentOS 7)] -> doesn't create home dir if required
2021/03/13 22:49:38 Result: exit status 1
2021/03/13 22:49:38 Output:
2021/03/13 22:49:38 ✗ [2.3 User Role (CentOS 7)] -> use "user_shell" variable
2021/03/13 22:49:38 Result: exit status 1
2021/03/13 22:49:38 Output:
2021/03/13 22:49:39 ✗ [2.3 User Role (CentOS 7)] -> setting custom sudo priviliges
2021/03/13 22:49:39 Result: exit status 1
2021/03/13 22:49:39 Output:
sudo: unknown user: debug9
sudo: unable to initialize policy plugin
2021/03/13 22:49:39 ✗ [2.3 User Role (CentOS 7)] -> doesn't create sudo priviliges for all users
2021/03/13 22:49:39 Result: exit status 1
2021/03/13 22:49:39 Output:
2021/03/13 22:49:39 ✗ [2.3 User Role (CentOS 7)] -> setting custom sudo priviliges - checking validation parameter
2021/03/13 22:49:39 Result: exit status 1
2021/03/13 22:49:39 Output:
2021/03/13 22:49:40 -----------------------------------------------------------------------------------
2021/03/13 22:49:40 Tests Summary:
2021/03/13 22:49:40 0 (of 17) tests passed, 17 tests failed; rated as 0.00%
2021/03/13 22:49:40
2021/03/13 22:49:40 Time Spent: 13.317s
2021/03/13 22:49:40 -----------------------------------------------------------------------------------
name: maksimelyan_tamashevich, master/9b8dc97 @ 2021-03-11 21:57:41 +0000
2021/03/13 22:49:40 config: tests/webapp-server.yml
2021/03/13 22:49:40 verbosity: 2
2021/03/13 22:49:40 -----------------------------------------------------------------------------------
2021/03/13 22:49:40 Running '2.3 WebApp-Server Role (centos 7)', 1..17 tests
2021/03/13 22:49:40 -----------------------------------------------------------------------------------
2021/03/13 22:49:42 ✗ [2.3 WebApp-Server Role (centos 7)] -> role linter
2021/03/13 22:49:42 Result: exit status 1
2021/03/13 22:49:42 Output:
2021/03/13 22:49:44 ✗ [2.3 WebApp-Server Role (centos 7)] -> playbook syntax check
2021/03/13 22:49:44 Result: exit status 4
2021/03/13 22:49:44 Output:
No config file found; using defaults
ERROR! Empty playbook, nothing to do
2021/03/13 22:49:44 ✗ [2.3 WebApp-Server Role (centos 7)] -> apply role
2021/03/13 22:49:44 Result: exit status 1
2021/03/13 22:49:44 Output:
2021/03/13 22:49:44 ✗ [2.3 WebApp-Server Role (centos 7)] -> idempotence check (apply the role twice)
2021/03/13 22:49:44 Result: exit status 1
2021/03/13 22:49:44 Output:
2021/03/13 22:49:44 ✗ [2.3 WebApp-Server Role (centos 7)] -> role depends on 'user' role
2021/03/13 22:49:44 Result: exit status 2
2021/03/13 22:49:44 Output:
grep: roles/webapp-server/meta/main.yml: No such file or directory
2021/03/13 22:49:44 ✗ [2.3 WebApp-Server Role (centos 7)] -> passing variables to 'user' role: 'webapp_server_user'
2021/03/13 22:49:44 Result: exit status 2
2021/03/13 22:49:44 Output:
grep: roles/webapp-server/meta/main.yml: No such file or directory
2021/03/13 22:49:44 ✗ [2.3 WebApp-Server Role (centos 7)] -> passing variables to 'user' role: 'webapp_server_group'
2021/03/13 22:49:44 Result: exit status 2
2021/03/13 22:49:44 Output:
grep: roles/webapp-server/meta/main.yml: No such file or directory
2021/03/13 22:49:45 ✗ [2.3 WebApp-Server Role (centos 7)] -> service responds 200
2021/03/13 22:49:45 Result: exit status 7
2021/03/13 22:49:45 Output:
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:49:45 ✗ [2.3 WebApp-Server Role (centos 7)] -> service is enabled
2021/03/13 22:49:45 Result: exit status 1
2021/03/13 22:49:45 Output:
Failed to get unit file state for webapp-server.service: No such file or directory
2021/03/13 22:49:46 ✗ [2.3 WebApp-Server Role (centos 7)] -> service runs under proper user/group
2021/03/13 22:49:46 Result: exit status 1
2021/03/13 22:49:46 Output:
2021/03/13 22:49:46 ✗ [2.3 WebApp-Server Role (centos 7)] -> application user has no password set
2021/03/13 22:49:46 Result: exit status 1
2021/03/13 22:49:46 Output:
2021/03/13 22:49:51 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: updating server application
2021/03/13 22:49:51 Result: exit status 1
2021/03/13 22:49:51 Output:
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [default]
PLAY RECAP *********************************************************************
default : ok=1  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:50:02 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: changing application port
2021/03/13 22:50:02 Result: exit status 1
2021/03/13 22:50:02 Output:
centos7
a6e9245ea226022bce3644a7cb9ef1b8497a1663a93894c3763214b3125ab0a6
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [default]
PLAY RECAP *********************************************************************
default : ok=1  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
* About to connect() to localhost port 8081 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8081; Cannot assign requested address
* Closing connection 0
2021/03/13 22:50:12 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: changing student name
2021/03/13 22:50:12 Result: exit status 1
2021/03/13 22:50:12 Output:
centos7
e75aca5256a1997d449d475738920ac61536339478f2575f580af1a43e21ae40
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [default]
PLAY RECAP *********************************************************************
default : ok=1  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:50:24 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: changing application home dir
2021/03/13 22:50:24 Result: exit status 1
2021/03/13 22:50:24 Output:
centos7
25c2b0a56b90fcae54cf245123c78a187d1f4b6b85236d145bd2f3df74a4b2dc
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [default]
PLAY RECAP *********************************************************************
default : ok=1  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Unit webapp-server.service could not be found.
2021/03/13 22:50:34 ✗ [2.3 WebApp-Server Role (centos 7)] -> rollout (Not ROOT)
2021/03/13 22:50:34 Result: exit status 7
2021/03/13 22:50:34 Output:
centos7
e9e01ed6259f3503e087f18640d80bc2adb3dd35db9282f35fd0aba422664ed0
No config file found; using defaults
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [default]
PLAY RECAP *********************************************************************
default : ok=1  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:50:38 ✓ [2.3 WebApp-Server Role (centos 7)] => idempotancy check (Not ROOT) (5), 4.141s
2021/03/13 22:50:39 -----------------------------------------------------------------------------------
2021/03/13 22:50:39 Tests Summary:
2021/03/13 22:50:39 1 (of 17) tests passed, 16 tests failed; rated as 15.15%
2021/03/13 22:50:39
2021/03/13 22:50:39 Time Spent: 58.496s
2021/03/13 22:50:39 -----------------------------------------------------------------------------------
name: maksimelyan_tamashevich, master/9b8dc97 @ 2021-03-11 21:57:41 +0000
2021/03/13 22:50:39 config: tests/mysqldb.yml
2021/03/13 22:50:39 verbosity: 2
2021/03/13 22:50:39 -----------------------------------------------------------------------------------
2021/03/13 22:50:39 Running '2.3 MysqlDB Role (CentOS 7)', 1..17 tests
2021/03/13 22:50:39 -----------------------------------------------------------------------------------
2021/03/13 22:50:40 ✗ [2.3 MysqlDB Role (CentOS 7)] -> 'mysql_db' role linter
2021/03/13 22:50:40 Result: exit status 1
2021/03/13 22:50:40 Output:
2021/03/13 22:50:40 ✗ [2.3 MysqlDB Role (CentOS 7)] -> 'mysql_db_user' role linter
2021/03/13 22:50:40 Result: exit status 1
2021/03/13 22:50:40 Output:
2021/03/13 22:50:41 ✗ [2.3 MysqlDB Role (CentOS 7)] -> playbook syntax check
2021/03/13 22:50:41 Result: exit status 4
2021/03/13 22:50:41 Output:
No config file found; using defaults
ERROR! Empty playbook, nothing to do
2021/03/13 22:50:43 ✗ [2.3 MysqlDB Role (CentOS 7)] -> running role-mysqldb.yml playbook
2021/03/13 22:50:43 Result: exit status 4
2021/03/13 22:50:43 Output:
Error: No such container: db
185ceae185a35d0cca721e3679788dac62ef10bc475cfce435ab73525a51b1d0
No config file found; using defaults
ERROR! Empty playbook, nothing to do
2021/03/13 22:50:44 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db' role
2021/03/13 22:50:44 Result: exit status 1
2021/03/13 22:50:44 Output:
2021/03/13 22:50:44 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db' role again
2021/03/13 22:50:44 Result: exit status 1
2021/03/13 22:50:44 Output:
2021/03/13 22:50:44 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db_user' role
2021/03/13 22:50:44 Result: exit status 1
2021/03/13 22:50:44 Output:
2021/03/13 22:50:44 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db_user' role again
2021/03/13 22:50:44 Result: exit status 1
2021/03/13 22:50:44 Output:
2021/03/13 22:50:44 ✗ [2.3 MysqlDB Role (CentOS 7)] -> db service is enabled
2021/03/13 22:50:44 Result: exit status 1
2021/03/13 22:50:44 Output:
Failed to get unit file state for mysqld.service: No such file or directory
2021/03/13 22:50:45 ✗ [2.3 MysqlDB Role (CentOS 7)] -> db service is active
2021/03/13 22:50:45 Result: exit status 3
2021/03/13 22:50:45 Output:
unknown
2021/03/13 22:50:45 ✗ [2.3 MysqlDB Role (CentOS 7)] -> db service is running on 3306
2021/03/13 22:50:45 Result: exit status 3
2021/03/13 22:50:45 Output:
unknown
2021/03/13 22:50:46 ✗ [2.3 MysqlDB Role (CentOS 7)] -> db root password set
2021/03/13 22:50:46 Result: exit status 1
2021/03/13 22:50:46 Output:
2021/03/13 22:50:47 ✗ [2.3 MysqlDB Role (CentOS 7)] -> custom db user (non-root) created
2021/03/13 22:50:47 Result: exit status 1
2021/03/13 22:50:47 Output:
2021/03/13 22:50:50 ✓ [2.3 MysqlDB Role (CentOS 7)] => apply 'mysql_db' role (Not ROOT) (1), 3.783s
2021/03/13 22:50:52 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db' role (Not ROOT) again
2021/03/13 22:50:52 Result: exit status 1
2021/03/13 22:50:52 Output:
PLAY [db] **********************************************************************
PLAY RECAP *********************************************************************
2021/03/13 22:50:54 ✓ [2.3 MysqlDB Role (CentOS 7)] => apply 'mysql_db_user' role (Not ROOT) (1), 1.703s
2021/03/13 22:50:55 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db_user' role (Not ROOT) again
2021/03/13 22:50:55 Result: exit status 1
2021/03/13 22:50:55 Output:
PLAY [db] **********************************************************************
PLAY RECAP *********************************************************************
2021/03/13 22:50:56 -----------------------------------------------------------------------------------
2021/03/13 22:50:56 Tests Summary:
2021/03/13 22:50:56 2 (of 17) tests passed, 15 tests failed; rated as 11.76%
2021/03/13 22:50:56
2021/03/13 22:50:56 Time Spent: 16.998s
2021/03/13 22:50:56 -----------------------------------------------------------------------------------
name: maksimelyan_tamashevich, master/9b8dc97 @ 2021-03-11 21:57:41 +0000
2021/03/13 22:50:56 config: tests/mysqldb-check.yml
2021/03/13 22:50:56 verbosity: 2
2021/03/13 22:50:56 -----------------------------------------------------------------------------------
2021/03/13 22:50:56 Running '2.3 MySQL DB Check', 1..16 tests
2021/03/13 22:50:56 -----------------------------------------------------------------------------------
2021/03/13 22:50:57 ✗ [2.3 MySQL DB Check] -> 'mysql_db_check' role linter
2021/03/13 22:50:57 Result: exit status 1
2021/03/13 22:50:57 Output:
2021/03/13 22:50:58 ✗ [2.3 MySQL DB Check] -> 'role-mysqldb-check.yml' playbook syntax check
2021/03/13 22:50:58 Result: exit status 4
2021/03/13 22:50:58 Output:
No config file found; using defaults
ERROR! Empty playbook, nothing to do
2021/03/13 22:51:01 ✗ [2.3 MySQL DB Check] -> apply 'role-mysqldb-check.yml' playbook
2021/03/13 22:51:01 Result: exit status 4
2021/03/13 22:51:01 Output:
Error: No such container: db-check
bed0bba1b1da14379a98c667065839527ce538ea5055b17a9b4afef013e13464
No config file found; using defaults
ERROR! Empty playbook, nothing to do
2021/03/13 22:51:01 ✗ [2.3 MySQL DB Check] -> apply 'mysql_db_check' role (default settings)
2021/03/13 22:51:01 Result: exit status 1
2021/03/13 22:51:01 Output:
2021/03/13 22:51:01 ✗ [2.3 MySQL DB Check] -> service responds 200 (after initial rollout)
2021/03/13 22:51:01 Result: exit status 7
2021/03/13 22:51:01 Output:
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:51:01 ✗ [2.3 MySQL DB Check] -> idempotency check (apply the role twice)
2021/03/13 22:51:01 Result: exit status 1
2021/03/13 22:51:01 Output:
2021/03/13 22:51:02 ✗ [2.3 MySQL DB Check] -> service responds 200 (after idempotancy check)
2021/03/13 22:51:02 Result: exit status 7
2021/03/13 22:51:02 Output:
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:51:03 ✗ [2.3 MySQL DB Check] -> service is enabled
2021/03/13 22:51:03 Result: exit status 1
2021/03/13 22:51:03 Output:
Failed to get unit file state for mysqldb-check.service: No such file or directory
2021/03/13 22:51:03 ✗ [2.3 MySQL DB Check] -> service runs under proper user/group
2021/03/13 22:51:03 Result: exit status 1
2021/03/13 22:51:03 Output:
2021/03/13 22:51:04 ✗ [2.3 MySQL DB Check] -> application user has no password set
2021/03/13 22:51:04 Result: exit status 1
2021/03/13 22:51:04 Output:
2021/03/13 22:51:09 ✗ [2.3 MySQL DB Check] -> trying another application port
2021/03/13 22:51:09 Result: exit status 1
2021/03/13 22:51:09 Output:
db-check
a69071b115c49887372ac267c6db4652c3e7c389fce6c27f683c6063922790dc
No config file found; using defaults
PLAY [db-check] ****************************************************************
PLAY RECAP *********************************************************************
* About to connect() to localhost port 8081 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8081; Cannot assign requested address
* Closing connection 0
2021/03/13 22:51:13 ✗ [2.3 MySQL DB Check] -> trying another application home dir
2021/03/13 22:51:13 Result: exit status 7
2021/03/13 22:51:13 Output:
db-check
ce6e28e43c7fa1621288681b9e9b373069d2bce431637adae64b55238dfa1f94
No config file found; using defaults
PLAY [db-check] ****************************************************************
PLAY RECAP *********************************************************************
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:51:18 ✗ [2.3 MySQL DB Check] -> trying another application user
2021/03/13 22:51:18 Result: exit status 7
2021/03/13 22:51:18 Output:
db-check
0c31148a428759288a2cb6df0ba78f4036934616f4399bb92bcfa761c5bf6a4f
No config file found; using defaults
PLAY [db-check] ****************************************************************
PLAY RECAP *********************************************************************
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:51:22 ✗ [2.3 MySQL DB Check] -> trying another application group
2021/03/13 22:51:22 Result: exit status 7
2021/03/13 22:51:22 Output:
db-check
3cadc4c27483ec3d795ae444b8c85947bd06d3cdbdc680f7f832259fdf4070fa
No config file found; using defaults
PLAY [db-check] ****************************************************************
PLAY RECAP *********************************************************************
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:51:26 ✗ [2.3 MySQL DB Check] -> rollout (Not ROOT)
2021/03/13 22:51:26 Result: exit status 7
2021/03/13 22:51:26 Output:
db-check
85a0cd85217db0c7b299d41b8dd73c5a9e9ff7138cafdc97dc063f77483a5d77
No config file found; using defaults
PLAY [db-check] ****************************************************************
PLAY RECAP *********************************************************************
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* Connection refused
* Trying ::1...
* Failed to connect to ::1: Cannot assign requested address
* Failed connect to localhost:8080; Cannot assign requested address
* Closing connection 0
2021/03/13 22:51:28 ✗ [2.3 MySQL DB Check] -> idempotency check (Not ROOT)
2021/03/13 22:51:28 Result: exit status 1
2021/03/13 22:51:28 Output:
(run, /tmp/students-2/maksimelyan_tamashevich/day2/2.3) => ansible-playbook testing-role-mysqldb-check.yml -i db-check, -v -u devops
rc: 0
output: |
No config file found; using defaults
PLAY [db-check] ****************************************************************
PLAY RECAP *********************************************************************
Stdout Assertion Failed (Partial, 'unreachable=0')
2021/03/13 22:51:29 -----------------------------------------------------------------------------------
2021/03/13 22:51:29 Tests Summary:
2021/03/13 22:51:29 0 (of 16) tests passed, 16 tests failed; rated as 0.00%
2021/03/13 22:51:29
2021/03/13 22:51:29 Time Spent: 32.916s
2021/03/13 22:51:29 -----------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment