-
-
Save sbeliakou/e7ae7daf4c1cdc1716a7102670c23632 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 'vitali_lukashevich1'... | |
name: vitali_lukashevich1, master/a4c5b61 @ 2021-03-11 21:58:36 +0000 | |
2021/03/13 23:55:57 config: tests/encryption.yml | |
2021/03/13 23:55:57 verbosity: 2 | |
2021/03/13 23:55:57 ----------------------------------------------------------------------------------- | |
2021/03/13 23:55:57 Running '2.1 Working with Secrets', 1..8 tests | |
2021/03/13 23:55:57 ----------------------------------------------------------------------------------- | |
2021/03/13 23:55:57 ✓ [2.1 Working with Secrets] => 'spoiler1' decrypted correctly (1), 13ms | |
2021/03/13 23:55:57 ✓ [2.1 Working with Secrets] => 'spoiler2' decrypted correctly (1), 10ms | |
2021/03/13 23:55:57 ✓ [2.1 Working with Secrets] => 'spoiler3' decrypted correctly (1), 9ms | |
2021/03/13 23:55:57 ✓ [2.1 Working with Secrets] => 'spoiler4' decrypted correctly (1), 9ms | |
2021/03/13 23:55:59 ✓ [2.1 Working with Secrets] => 'secret1' encrypted with tag=dev (v1.2/AES256) (1), 26ms | |
2021/03/13 23:55:59 ✓ [2.1 Working with Secrets] => 'secret2' encrypted with tag=test (v1.2/AES256) (1), 21ms | |
2021/03/13 23:55:59 ✓ [2.1 Working with Secrets] => 'secret3' encrypted with tag=stage (v1.2/AES256) (1), 21ms | |
2021/03/13 23:55:59 ✗ [2.1 Working with Secrets] -> 'secret4' encrypted with tag=prod (v1.2/AES256) | |
2021/03/13 23:55:59 Result: exit status 1 | |
2021/03/13 23:55:59 Output: | |
2021/03/13 23:55:59 ----------------------------------------------------------------------------------- | |
2021/03/13 23:55:59 Tests Summary: | |
2021/03/13 23:55:59 7 (of 8) tests passed, 1 tests failed; rated as 87.50% | |
2021/03/13 23:55:59 | |
2021/03/13 23:55:59 Time Spent: 1.521s | |
2021/03/13 23:55:59 ----------------------------------------------------------------------------------- | |
name: vitali_lukashevich1, master/a4c5b61 @ 2021-03-11 21:58:36 +0000 | |
2021/03/13 23:55:59 config: tests/role-deps.yml | |
2021/03/13 23:55:59 verbosity: 2 | |
2021/03/13 23:55:59 ----------------------------------------------------------------------------------- | |
2021/03/13 23:55:59 Running '2.2 Role Dependencies', 1..17 tests | |
2021/03/13 23:55:59 ----------------------------------------------------------------------------------- | |
2021/03/13 23:56:01 ✓ [2.2 Role Dependencies] => 'base' linter (1), 2.536s | |
2021/03/13 23:56:04 ✓ [2.2 Role Dependencies] => 'java' linter (1), 2.241s | |
2021/03/13 23:56:06 ✓ [2.2 Role Dependencies] => 'tomcat' linter (1), 2.289s | |
2021/03/13 23:56:08 ✓ [2.2 Role Dependencies] => 'nginx-base' linter (1), 2.303s | |
2021/03/13 23:56:10 ✓ [2.2 Role Dependencies] => 'nginx-custom' linter (1), 2.142s | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'user' linter (1), 2.147s | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'tomcat' role depends on 'java' role (1), 6ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'java' role with 'java_version' parameter (1), 5ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'tomcat' role depends on 'user' role (1), 5ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'user' role with 'user_name' parameter (1), 5ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'user' role with 'user_id' parameter (1), 6ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'user' role with 'group_id' parameter (1), 5ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'user' role with 'user_home' parameter (1), 5ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'tomcat' role depends on 'base' role (1), 5ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'java' role depends on 'base' role (1), 5ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'nginx-base' role depends on 'base' role (1), 6ms | |
2021/03/13 23:56:13 ✓ [2.2 Role Dependencies] => 'nginx-custom' role depends on 'nginx-base' role (1), 5ms | |
2021/03/13 23:56:13 ----------------------------------------------------------------------------------- | |
2021/03/13 23:56:13 Tests Summary: | |
2021/03/13 23:56:13 17 (of 17) tests passed, 0 tests failed; rated as 100.00% | |
2021/03/13 23:56:13 | |
2021/03/13 23:56:13 Time Spent: 13.725s | |
2021/03/13 23:56:13 ----------------------------------------------------------------------------------- | |
name: vitali_lukashevich1, master/a4c5b61 @ 2021-03-11 21:58:36 +0000 | |
2021/03/13 23:56:13 config: tests/base.yml | |
2021/03/13 23:56:13 verbosity: 2 | |
2021/03/13 23:56:13 ----------------------------------------------------------------------------------- | |
2021/03/13 23:56:13 Running '2.3 Base Role (centos 7)', 1..11 tests | |
2021/03/13 23:56:13 ----------------------------------------------------------------------------------- | |
2021/03/13 23:56:19 ✓ [2.3 Base Role (centos 7)] => Role Linter (1), 4.302s | |
2021/03/13 23:56:20 ✓ [2.3 Base Role (centos 7)] => playbook syntax check (1), 1.341s | |
2021/03/13 23:56:45 ✓ [2.3 Base Role (centos 7)] => apply role (5), 24.855s | |
2021/03/13 23:56:52 ✓ [2.3 Base Role (centos 7)] => idempotence check (apply the role twice) (5), 6.72s | |
2021/03/13 23:56:52 ✓ [2.3 Base Role (centos 7)] => role installs 'epel' repo (1), 17ms | |
2021/03/13 23:56:52 ✓ [2.3 Base Role (centos 7)] => role installs 'curl' package (1), 16ms | |
2021/03/13 23:56:52 ✓ [2.3 Base Role (centos 7)] => role installs 'wget' package (1), 16ms | |
2021/03/13 23:56:52 ✓ [2.3 Base Role (centos 7)] => role installs 'sudo' package (1), 11ms | |
2021/03/13 23:56:52 ✓ [2.3 Base Role (centos 7)] => role installs 'iproute' package (1), 15ms | |
2021/03/13 23:56:52 ✗ [2.3 Base Role (centos 7)] -> role installs 'python-pip' package | |
2021/03/13 23:56:52 Result: exit status 1 | |
2021/03/13 23:56:52 Output: | |
2021/03/13 23:56:52 ✓ [2.3 Base Role (centos 7)] => role creates ansible facts folder (1), 255ms | |
2021/03/13 23:56:53 ----------------------------------------------------------------------------------- | |
2021/03/13 23:56:53 Tests Summary: | |
2021/03/13 23:56:53 10 (of 11) tests passed, 1 tests failed; rated as 94.74% | |
2021/03/13 23:56:53 | |
2021/03/13 23:56:53 Time Spent: 40.749s | |
2021/03/13 23:56:53 ----------------------------------------------------------------------------------- | |
name: vitali_lukashevich1, master/a4c5b61 @ 2021-03-11 21:58:36 +0000 | |
2021/03/13 23:56:53 config: tests/user.yml | |
2021/03/13 23:56:53 verbosity: 2 | |
2021/03/13 23:56:53 ----------------------------------------------------------------------------------- | |
2021/03/13 23:56:53 Running '2.3 User Role (CentOS 7)', 1..17 tests | |
2021/03/13 23:56:53 ----------------------------------------------------------------------------------- | |
2021/03/13 23:56:59 ✓ [2.3 User Role (CentOS 7)] => Role Linter (1), 4.114s | |
2021/03/13 23:57:00 ✓ [2.3 User Role (CentOS 7)] => playbook syntax check (1), 1.16s | |
2021/03/13 23:57:33 ✓ [2.3 User Role (CentOS 7)] => apply role (5), 30.676s | |
2021/03/13 23:57:39 ✗ [2.3 User Role (CentOS 7)] -> idempotence check (apply role twice) | |
2021/03/13 23:57:39 Result: exit status 2 | |
2021/03/13 23:57:39 Output: | |
[0;34mNo config file found; using defaults | |
PLAY [all] ********************************************************************* | |
TASK [user : Create Group name={{ user_group }}] ******************************* | |
[1;35m[WARNING]: Unhandled error in Python interpreter discovery for host centos7: | |
[1;35merror occurred on host 0ff6547de0f6: EOF on stream; last 100 lines received: | |
[1;35m>>> /etc/sudoers.d/debug1: syntax error near line 1 <<< >>> | |
[1;35m/etc/sudoers.d/debug2: syntax error near line 1 <<< >>> /etc/sudoers.d/debug3: | |
[1;35msyntax error near line 1 <<< >>> /etc/sudoers.d/debug4: syntax error near line | |
[1;35m1 <<< >>> /etc/sudoers.d/debug5: syntax error near line 1 <<< >>> | |
[1;35m/etc/sudoers.d/debug6: syntax error near line 1 <<< >>> /etc/sudoers.d/debug7: | |
[1;35msyntax error near line 1 <<< >>> /etc/sudoers.d/debug8: syntax error near line | |
[1;35m1 <<< sudo: parse error in /etc/sudoers.d/debug1 near line 1 sudo: no valid | |
[1;35msudoers sources found, quitting sudo: unable to initialize policy plugin | |
[0;31mfatal: [centos7]: FAILED! => {"msg": "error occurred on host 0ff6547de0f6: EOF on stream; last 100 lines received:\n>>> /etc/sudoers.d/debug1: syntax error near line 1 <<<\n>>> /etc/sudoers.d/debug2: syntax error near line 1 <<<\n>>> /etc/sudoers.d/debug3: syntax error near line 1 <<<\n>>> /etc/sudoers.d/debug4: syntax error near line 1 <<<\n>>> /etc/sudoers.d/debug5: syntax error near line 1 <<<\n>>> /etc/sudoers.d/debug6: syntax error near line 1 <<<\n>>> /etc/sudoers.d/debug7: syntax error near line 1 <<<\n>>> /etc/sudoers.d/debug8: syntax error near line 1 <<<\nsudo: parse error in /etc/sudoers.d/debug1 near line 1\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin"} | |
PLAY RECAP ********************************************************************* | |
[0;31mcentos7 : ok=0 changed=0 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
2021/03/13 23:57:39 ✓ [2.3 User Role (CentOS 7)] => use "user_name" varaible (1), 180ms | |
2021/03/13 23:57:39 ✓ [2.3 User Role (CentOS 7)] => use "user_name", "user_group" variables (1), 187ms | |
2021/03/13 23:57:39 ✗ [2.3 User Role (CentOS 7)] -> use "user_name", "user_id", "user_group" variables | |
2021/03/13 23:57:39 Result: exit status 1 | |
2021/03/13 23:57:39 Output: | |
2021/03/13 23:57:40 ✗ [2.3 User Role (CentOS 7)] -> use "user_name", "user_id", "user_group", "user_gid" variables | |
2021/03/13 23:57:40 Result: exit status 1 | |
2021/03/13 23:57:40 Output: | |
2021/03/13 23:57:40 ✓ [2.3 User Role (CentOS 7)] => use "user_home" variable (1), 166ms | |
2021/03/13 23:57:40 ✓ [2.3 User Role (CentOS 7)] => set correct home permissions (1), 174ms | |
2021/03/13 23:57:40 ✓ [2.3 User Role (CentOS 7)] => user owns its home directory (1), 191ms | |
2021/03/13 23:57:40 ✓ [2.3 User Role (CentOS 7)] => use "user_name" from play vars (1), 181ms | |
2021/03/13 23:57:41 ✓ [2.3 User Role (CentOS 7)] => doesn't create home dir if required (1), 345ms | |
2021/03/13 23:57:41 ✓ [2.3 User Role (CentOS 7)] => use "user_shell" variable (1), 177ms | |
2021/03/13 23:57:41 ✗ [2.3 User Role (CentOS 7)] -> setting custom sudo priviliges | |
2021/03/13 23:57:41 Result: exit status 1 | |
2021/03/13 23:57:41 Output: | |
>>> /etc/sudoers.d/debug1: syntax error near line 1 <<< | |
>>> /etc/sudoers.d/debug2: syntax error near line 1 <<< | |
>>> /etc/sudoers.d/debug3: syntax error near line 1 <<< | |
>>> /etc/sudoers.d/debug4: syntax error near line 1 <<< | |
>>> /etc/sudoers.d/debug5: syntax error near line 1 <<< | |
>>> /etc/sudoers.d/debug6: syntax error near line 1 <<< | |
>>> /etc/sudoers.d/debug7: syntax error near line 1 <<< | |
>>> /etc/sudoers.d/debug8: syntax error near line 1 <<< | |
sudo: parse error in /etc/sudoers.d/debug1 near line 1 | |
sudo: no valid sudoers sources found, quitting | |
sudo: unable to initialize policy plugin | |
2021/03/13 23:57:41 ✓ [2.3 User Role (CentOS 7)] => doesn't create sudo priviliges for all users (1), 202ms | |
2021/03/13 23:57:41 ✗ [2.3 User Role (CentOS 7)] -> setting custom sudo priviliges - checking validation parameter | |
2021/03/13 23:57:41 Result: exit status 1 | |
2021/03/13 23:57:41 Output: | |
2021/03/13 23:57:43 ----------------------------------------------------------------------------------- | |
2021/03/13 23:57:43 Tests Summary: | |
2021/03/13 23:57:43 12 (of 17) tests passed, 5 tests failed; rated as 64.00% | |
2021/03/13 23:57:43 | |
2021/03/13 23:57:43 Time Spent: 49.567s | |
2021/03/13 23:57:43 ----------------------------------------------------------------------------------- | |
name: vitali_lukashevich1, master/a4c5b61 @ 2021-03-11 21:58:36 +0000 | |
2021/03/13 23:57:43 config: tests/webapp-server.yml | |
2021/03/13 23:57:43 verbosity: 2 | |
2021/03/13 23:57:43 ----------------------------------------------------------------------------------- | |
2021/03/13 23:57:43 Running '2.3 WebApp-Server Role (centos 7)', 1..17 tests | |
2021/03/13 23:57:43 ----------------------------------------------------------------------------------- | |
2021/03/13 23:57:50 ✓ [2.3 WebApp-Server Role (centos 7)] => role linter (1), 5.12s | |
2021/03/13 23:57:52 ✓ [2.3 WebApp-Server Role (centos 7)] => playbook syntax check (1), 2.235s | |
2021/03/13 23:58:29 ✗ [2.3 WebApp-Server Role (centos 7)] -> apply role | |
2021/03/13 23:58:29 Result: exit status 1 | |
2021/03/13 23:58:29 Output: | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;31mERROR! The requested handler 'webapp restart' was not found in either the main handlers list nor in the listening handlers list | |
2021/03/13 23:58:38 ✗ [2.3 WebApp-Server Role (centos 7)] -> idempotence check (apply the role twice) | |
2021/03/13 23:58:38 Result: exit status 1 | |
2021/03/13 23:58:38 Output: | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[1;35m[WARNING]: Unhandled error in Python interpreter discovery for host default: | |
[1;35merror occurred on host e9e8aa03d846: EOF on stream; last 100 lines received: | |
[1;35m>>> /etc/sudoers.d/rolewebappserver: syntax error near line 1 <<< sudo: parse | |
[1;35merror in /etc/sudoers.d/rolewebappserver near line 1 sudo: no valid sudoers | |
[1;35msources found, quitting sudo: unable to initialize policy plugin | |
(run, /tmp/students-2/vitali_lukashevich1/day2/2.3) => ansible-playbook testing-role-webapp-server.yml -i default, -v -e ansible_host=centos7 | |
rc: 2 | |
output: | | |
[0;34mNo config file found; using defaults | |
PLAY [all] ********************************************************************* | |
TASK [Gathering Facts] ********************************************************* | |
[0;32mok: [default] | |
TASK [base : Install base packages] ******************************************** | |
[0;31mfatal: [default]: FAILED! => {"msg": "error occurred on host e9e8aa03d846: EOF on stream; last 100 lines received:\n>>> /etc/sudoers.d/rolewebappserver: syntax error near line 1 <<<\nsudo: parse error in /etc/sudoers.d/rolewebappserver near line 1\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin"} | |
PLAY RECAP ********************************************************************* | |
[0;31mdefault : [0;32mok=1 changed=0 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
CMD Failed: ansible-playbook testing-role-webapp-server.yml -i default, -v -e ansible_host=centos7 | |
2021/03/13 23:58:38 ✓ [2.3 WebApp-Server Role (centos 7)] => role depends on 'user' role (1), 6ms | |
2021/03/13 23:58:38 ✓ [2.3 WebApp-Server Role (centos 7)] => passing variables to 'user' role: 'webapp_server_user' (1), 6ms | |
2021/03/13 23:58:38 ✗ [2.3 WebApp-Server Role (centos 7)] -> passing variables to 'user' role: 'webapp_server_group' | |
2021/03/13 23:58:38 Result: exit status 1 | |
2021/03/13 23:58:38 Output: | |
2021/03/13 23:58:38 ✗ [2.3 WebApp-Server Role (centos 7)] -> service responds 200 | |
2021/03/13 23:58:38 Result: exit status 7 | |
2021/03/13 23:58:38 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 23:58:38 ✗ [2.3 WebApp-Server Role (centos 7)] -> service is enabled | |
2021/03/13 23:58:38 Result: exit status 1 | |
2021/03/13 23:58:38 Output: | |
Failed to get unit file state for webapp-server.service: No such file or directory | |
2021/03/13 23:58:38 ✗ [2.3 WebApp-Server Role (centos 7)] -> service runs under proper user/group | |
2021/03/13 23:58:38 Result: exit status 1 | |
2021/03/13 23:58:38 Output: | |
2021/03/13 23:58:39 ✗ [2.3 WebApp-Server Role (centos 7)] -> application user has no password set | |
2021/03/13 23:58:39 Result: exit status 1 | |
2021/03/13 23:58:39 Output: | |
2021/03/13 23:58:46 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: updating server application | |
2021/03/13 23:58:46 Result: exit status 2 | |
2021/03/13 23:58:46 Output: | |
[0;34mNo config file found; using defaults | |
PLAY [all] ********************************************************************* | |
TASK [Gathering Facts] ********************************************************* | |
[0;32mok: [default] | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[1;35m[WARNING]: Unhandled error in Python interpreter discovery for host default: | |
[1;35merror occurred on host e9e8aa03d846: EOF on stream; last 100 lines received: | |
[1;35m>>> /etc/sudoers.d/rolewebappserver: syntax error near line 1 <<< sudo: parse | |
[1;35merror in /etc/sudoers.d/rolewebappserver near line 1 sudo: no valid sudoers | |
[1;35msources found, quitting sudo: unable to initialize policy plugin | |
[0;31mfatal: [default]: FAILED! => {"msg": "error occurred on host e9e8aa03d846: EOF on stream; last 100 lines received:\n>>> /etc/sudoers.d/rolewebappserver: syntax error near line 1 <<<\nsudo: parse error in /etc/sudoers.d/rolewebappserver near line 1\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin"} | |
PLAY RECAP ********************************************************************* | |
[0;31mdefault : [0;32mok=1 changed=0 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
2021/03/13 23:59:26 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: changing application port | |
2021/03/13 23:59:26 Result: exit status 1 | |
2021/03/13 23:59:26 Output: | |
centos7 | |
4d686cd5f54eb8bc35b849df893cfa7b404f4e645d29703e7fa60bf769174009 | |
[0;34mNo config file found; using defaults | |
PLAY [all] ********************************************************************* | |
TASK [Gathering Facts] ********************************************************* | |
[0;32mok: [default] | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [default] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: mirror.datacenter.by\n * epel: mirror.datacenter.by\n * extras: mirror.datacenter.by\n * updates: mirror.datacenter.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 25 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "checksum": "f2dd4c58fd668dbb0decaf4de85c78ff77be9929", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "7280dc2efa5021167694727548fb00e8", "mode": "0644", "owner": "root", "size": 12203, "src": "/root/.ansible/tmp/ansible_mitogen_action_b47a9b85a8709977/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "rolewebappserver", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/home/rolewebappserver", "name": "rolewebappserver", "shell": "/bin/sh", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [webapp-server : Create Folder Bin] *************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "rolewebappserver", "mode": "0755", "owner": "rolewebappserver", "path": "/opt/webapp-server//bin/", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [webapp-server : Create Folder Conf] ************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "rolewebappserver", "mode": "0755", "owner": "rolewebappserver", "path": "/opt/webapp-server//conf/", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [webapp-server : Download Aplication] ************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "28f105a4ed1478f27001141888cb86efc7ace7aa", "dest": "/opt/webapp-server//bin/webapp-server", "elapsed": 7, "gid": 1001, "group": "rolewebappserver", "md5sum": "66e5a7366408e9db471e3e9586e01708", "mode": "0755", "msg": "OK (6213632 bytes)", "owner": "rolewebappserver", "size": 6213632, "src": "/root/.ansible/tmp/ansible-moduletmp-1615679957.23-UOOLdO/tmp2edQEa", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/webapp-server/webapp-server"} | |
TASK [webapp-server : Copy Configuration File] ********************************* | |
[0;31mERROR! The requested handler 'webapp restart' was not found in either the main handlers list nor in the listening handlers list | |
2021/03/14 00:00:06 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: changing student name | |
2021/03/14 00:00:06 Result: exit status 1 | |
2021/03/14 00:00:06 Output: | |
centos7 | |
6c131c5aac5470a865ef3d8a3bf5e0fc4d809743a50ec92d4a93c5004c72e7c6 | |
[0;34mNo config file found; using defaults | |
PLAY [all] ********************************************************************* | |
TASK [Gathering Facts] ********************************************************* | |
[0;32mok: [default] | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [default] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: mirror.datacenter.by\n * epel: mirror.datacenter.by\n * extras: mirror.datacenter.by\n * updates: mirror.datacenter.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 21 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "checksum": "1c50b7ee9a05c4c8d5ced42d429e9c98fbe73b0a", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "f6ef8be7000d7dae8fcec5b4c5b09234", "mode": "0644", "owner": "root", "size": 12203, "src": "/root/.ansible/tmp/ansible_mitogen_action_52bc113502c0e593/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "rolewebappserver", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/home/rolewebappserver", "name": "rolewebappserver", "shell": "/bin/sh", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [webapp-server : Create Folder Bin] *************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "rolewebappserver", "mode": "0755", "owner": "rolewebappserver", "path": "/opt/webapp-server//bin/", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [webapp-server : Create Folder Conf] ************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "rolewebappserver", "mode": "0755", "owner": "rolewebappserver", "path": "/opt/webapp-server//conf/", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [webapp-server : Download Aplication] ************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "28f105a4ed1478f27001141888cb86efc7ace7aa", "dest": "/opt/webapp-server//bin/webapp-server", "elapsed": 0, "gid": 1001, "group": "rolewebappserver", "md5sum": "66e5a7366408e9db471e3e9586e01708", "mode": "0755", "msg": "OK (6213632 bytes)", "owner": "rolewebappserver", "size": 6213632, "src": "/root/.ansible/tmp/ansible-moduletmp-1615680004.18-4qBUYs/tmpWfN_jR", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/webapp-server/webapp-server"} | |
TASK [webapp-server : Copy Configuration File] ********************************* | |
[0;31mERROR! The requested handler 'webapp restart' was not found in either the main handlers list nor in the listening handlers list | |
2021/03/14 00:00:54 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: changing application home dir | |
2021/03/14 00:00:54 Result: exit status 1 | |
2021/03/14 00:00:54 Output: | |
centos7 | |
f9f99fb0cf931929cbdc2c0edca26d30aa031f9f56b7efc8c957df61cb33c3f4 | |
[0;34mNo config file found; using defaults | |
PLAY [all] ********************************************************************* | |
TASK [Gathering Facts] ********************************************************* | |
[0;32mok: [default] | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [default] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: mirror.datacenter.by\n * epel: mirror.datacenter.by\n * extras: mirror.datacenter.by\n * updates: mirror.datacenter.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 21 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "checksum": "a6ad919c017d1fbdaa192cb1b8d4fcbea68f72a8", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "84f4a18890a941ef2e931fcfca45b58d", "mode": "0644", "owner": "root", "size": 12201, "src": "/root/.ansible/tmp/ansible_mitogen_action_98b7135d1d46736d/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "rolewebappserver", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/home/rolewebappserver", "name": "rolewebappserver", "shell": "/bin/sh", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [webapp-server : Create Folder Bin] *************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "rolewebappserver", "mode": "0755", "owner": "rolewebappserver", "path": "/opt/webapp-test/bin/", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [webapp-server : Create Folder Conf] ************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "rolewebappserver", "mode": "0755", "owner": "rolewebappserver", "path": "/opt/webapp-test/conf/", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [webapp-server : Download Aplication] ************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "28f105a4ed1478f27001141888cb86efc7ace7aa", "dest": "/opt/webapp-test/bin/webapp-server", "elapsed": 6, "gid": 1001, "group": "rolewebappserver", "md5sum": "66e5a7366408e9db471e3e9586e01708", "mode": "0755", "msg": "OK (6213632 bytes)", "owner": "rolewebappserver", "size": 6213632, "src": "/root/.ansible/tmp/ansible-moduletmp-1615680045.81-iM3wHS/tmpsD4i5P", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/webapp-server/webapp-server"} | |
TASK [webapp-server : Copy Configuration File] ********************************* | |
[0;31mERROR! The requested handler 'webapp restart' was not found in either the main handlers list nor in the listening handlers list | |
2021/03/14 00:01:38 ✗ [2.3 WebApp-Server Role (centos 7)] -> rollout (Not ROOT) | |
2021/03/14 00:01:38 Result: exit status 1 | |
2021/03/14 00:01:38 Output: | |
centos7 | |
e6c344578169401752ce5948368a23496bc9eb642e913cabaa97f8482840239a | |
[0;34mNo config file found; using defaults | |
PLAY [all] ********************************************************************* | |
TASK [Gathering Facts] ********************************************************* | |
[0;32mok: [default] | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [default] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: mirror.datacenter.by\n * epel: mirror.datacenter.by\n * extras: mirror.datacenter.by\n * updates: mirror.datacenter.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 17 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "checksum": "5cbccb3dbba4126d14de7cf604732b389d6f8225", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "eb3e42bc182c505157599b521866ab4e", "mode": "0644", "owner": "root", "size": 12160, "src": "/root/.ansible/tmp/ansible_mitogen_action_b79eb4e951defa07/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "rolewebappserver", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/home/rolewebappserver", "name": "rolewebappserver", "shell": "/bin/sh", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [webapp-server : Create Folder Bin] *************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "rolewebappserver", "mode": "0755", "owner": "rolewebappserver", "path": "/opt/webapp-server//bin/", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [webapp-server : Create Folder Conf] ************************************** | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "rolewebappserver", "mode": "0755", "owner": "rolewebappserver", "path": "/opt/webapp-server//conf/", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [webapp-server : Download Aplication] ************************************* | |
[0;33mchanged: [default] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "28f105a4ed1478f27001141888cb86efc7ace7aa", "dest": "/opt/webapp-server//bin/webapp-server", "elapsed": 4, "gid": 1001, "group": "rolewebappserver", "md5sum": "66e5a7366408e9db471e3e9586e01708", "mode": "0755", "msg": "OK (6213632 bytes)", "owner": "rolewebappserver", "size": 6213632, "src": "/root/.ansible/tmp/ansible-moduletmp-1615680091.79-5w6BDG/tmpnrkVvy", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/webapp-server/webapp-server"} | |
TASK [webapp-server : Copy Configuration File] ********************************* | |
[0;31mERROR! The requested handler 'webapp restart' was not found in either the main handlers list nor in the listening handlers list | |
2021/03/14 00:01:45 ✗ [2.3 WebApp-Server Role (centos 7)] -> idempotancy check (Not ROOT) | |
2021/03/14 00:01:45 Result: exit status 1 | |
2021/03/14 00:01:45 Output: | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[1;35m[WARNING]: Unhandled error in Python interpreter discovery for host default: | |
[1;35merror occurred on host e6c344578169: EOF on stream; last 100 lines received: | |
[1;35m>>> /etc/sudoers.d/rolewebappserver: syntax error near line 1 <<< sudo: parse | |
[1;35merror in /etc/sudoers.d/rolewebappserver near line 1 sudo: no valid sudoers | |
[1;35msources found, quitting sudo: unable to initialize policy plugin | |
(run, /tmp/students-2/vitali_lukashevich1/day2/2.3) => ansible-playbook testing-role-webapp-server.yml -i default, -e ansible_host=centos7 -v -u devops | |
rc: 2 | |
output: | | |
[0;34mNo config file found; using defaults | |
PLAY [all] ********************************************************************* | |
TASK [Gathering Facts] ********************************************************* | |
[0;32mok: [default] | |
TASK [base : Install base packages] ******************************************** | |
[0;31mfatal: [default]: FAILED! => {"msg": "error occurred on host e6c344578169: EOF on stream; last 100 lines received:\n>>> /etc/sudoers.d/rolewebappserver: syntax error near line 1 <<<\nsudo: parse error in /etc/sudoers.d/rolewebappserver near line 1\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin"} | |
PLAY RECAP ********************************************************************* | |
[0;31mdefault : [0;32mok=1 changed=0 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
CMD Failed: | |
2021/03/14 00:01:46 ----------------------------------------------------------------------------------- | |
2021/03/14 00:01:46 Tests Summary: | |
2021/03/14 00:01:46 4 (of 17) tests passed, 13 tests failed; rated as 12.12% | |
2021/03/14 00:01:46 | |
2021/03/14 00:01:46 Time Spent: 4m3.44s | |
2021/03/14 00:01:46 ----------------------------------------------------------------------------------- | |
name: vitali_lukashevich1, master/a4c5b61 @ 2021-03-11 21:58:36 +0000 | |
2021/03/14 00:01:46 config: tests/mysqldb.yml | |
2021/03/14 00:01:46 verbosity: 2 | |
2021/03/14 00:01:46 ----------------------------------------------------------------------------------- | |
2021/03/14 00:01:46 Running '2.3 MysqlDB Role (CentOS 7)', 1..17 tests | |
2021/03/14 00:01:46 ----------------------------------------------------------------------------------- | |
2021/03/14 00:01:51 ✗ [2.3 MysqlDB Role (CentOS 7)] -> 'mysql_db' role linter | |
2021/03/14 00:01:51 Result: exit status 2 | |
2021/03/14 00:01:51 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
WARNING Listing 4 violation(s) that are fatal | |
command-instead-of-shell: Use shell only when shell functionality is required | |
roles/mysql_db/tasks/main.yml:15 Task/Handler: Point 3 | |
no-handler: Tasks that run when changed should likely be handlers | |
roles/mysql_db/tasks/main.yml:15 Task/Handler: Point 3 | |
no-changed-when: Commands should not change things if nothing needs doing | |
roles/mysql_db/tasks/main.yml:27 Task/Handler: Add Password | |
risky-shell-pipe: Shells that use pipes should set the pipefail option | |
roles/mysql_db/tasks/main.yml:27 Task/Handler: Add Password | |
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 | |
- command-instead-of-shell # Use shell only when shell functionality is required | |
- no-changed-when # Commands should not change things if nothing needs doing | |
- no-handler # Tasks that run when changed should likely be handlers | |
- risky-shell-pipe # Shells that use pipes should set the pipefail option | |
Finished with [1;34m4 failure(s), [1;34m0 warning(s) on [1;34m10 files. | |
2021/03/14 00:01:54 ✓ [2.3 MysqlDB Role (CentOS 7)] => 'mysql_db_user' role linter (1), 2.686s | |
2021/03/14 00:01:55 ✓ [2.3 MysqlDB Role (CentOS 7)] => playbook syntax check (1), 1.066s | |
2021/03/14 00:05:12 ✓ [2.3 MysqlDB Role (CentOS 7)] => running role-mysqldb.yml playbook (1), 3m17.392s | |
2021/03/14 00:08:46 ✓ [2.3 MysqlDB Role (CentOS 7)] => apply 'mysql_db' role (1), 3m32.807s | |
2021/03/14 00:08:56 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db' role again | |
2021/03/14 00:08:56 Result: exit status 2 | |
2021/03/14 00:08:56 Output: | |
[0;34mNo config file found; using defaults | |
PLAY [db] ********************************************************************** | |
TASK [base : Install base packages name={{ item }}, state=installed] *********** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;32mok: [db] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "ansible_loop_var": "item", "changed": false, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "python3-pip-9.0.3-8.el7.noarch providing python3-pip is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "wget-1.14-18.el7_6.1.x86_64 providing wget is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed"]} | |
TASK [base : Create folder for gathering facts state=directory, path=/etc/ansible/facts.d] *** | |
[0;32mok: [db] => {"ansible_facts": {}, "changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder content={{ ansible_facts }}, dest=/etc/ansible/facts.d/facts.json] *** | |
[0;32mok: [db] => {"ansible_facts": {}, "changed": false, "checksum": "8737dfddd75e3dea4f181882d8b12938f71d57d3", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/ansible/facts.d/facts.json", "size": 52, "state": "file", "uid": 0} | |
TASK [mysql_db : Install MySQL rpm name=https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm, state=present] *** | |
[0;32mok: [db] => {"ansible_facts": {}, "changed": false, "msg": "", "rc": 0, "results": ["mysql80-community-release-el7-3.noarch providing /root/.ansible/tmp/ansible-moduletmp-1615680533.16-ggSoEc/mysql80-community-release-el7-3.noarch9Z2Cih.rpm is already installed"]} | |
TASK [mysql_db : Install MySQL name=mysql-community-server, enablerepo=mysql80-community, state=present] *** | |
[0;32mok: [db] => {"ansible_facts": {}, "changed": false, "msg": "", "rc": 0, "results": ["mysql-community-server-8.0.23-1.el7.x86_64 providing mysql-community-server is already installed"]} | |
TASK [mysql_db : Point 3 _raw_params=mysqld --initialize-insecure --user=mysql] *** | |
[0;36mskipping: [db] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [mysql_db : Ensure Service Enabled and Running name=mysqld, state=started, enabled=True] *** | |
[0;32mok: [db] => {"ansible_facts": {}, "changed": false, "enabled": true, "name": "mysqld", "state": "started", "status": {"ActiveEnterTimestamp": "Sun 2021-03-14 00:08:37 UTC", "ActiveEnterTimestampMonotonic": "358411096355", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target systemd-journald.socket network.target syslog.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sun 2021-03-14 00:08:36 UTC", "AssertTimestampMonotonic": "358409539245", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Sun 2021-03-14 00:08:36 UTC", "ConditionTimestampMonotonic": "358409539245", "Conflicts": "shutdown.target", "ControlGroup": "/docker/b19f2da250ec68bbfc76e4d253674d07bdf22850c0371c63629d73eed20adaed/system.slice/mysqld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "MySQL Server", "DevicePolicy": "auto", "Documentation": "man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html", "Environment": "MYSQLD_PARENT_PID=1", "EnvironmentFile": "/etc/sysconfig/mysql (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8672", "ExecMainStartTimestamp": "Sun 2021-03-14 00:08:36 UTC", "ExecMainStartTimestampMonotonic": "358409628674", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/mysqld ; argv[]=/usr/sbin/mysqld $MYSQLD_OPTS ; ignore_errors=no ; start_time=[Sun 2021-03-14 00:08:36 UTC] ; stop_time=[n/a] ; pid=8672 ; code=(null) ; status=0/0 }", "ExecStartPre": "{ path=/usr/bin/mysqld_pre_systemd ; argv[]=/usr/bin/mysqld_pre_systemd ; ignore_errors=no ; start_time=[Sun 2021-03-14 00:08:36 UTC] ; stop_time=[Sun 2021-03-14 00:08:36 UTC] ; pid=8651 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mysqld.service", "Group": "mysql", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "mysqld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sun 2021-03-14 00:08:36 UTC", "InactiveExitTimestampMonotonic": "358409540183", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "67108864", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "10000", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "29790", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "8672", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "mysqld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "main", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "yes", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target", "Restart": "on-failure", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StatusText": "Server is operational", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "0", "TimerSlackNSec": "50000", "Transient": "no", "Type": "notify", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mysql", "WantedBy": "multi-user.target", "Wants": "system.slice", "WatchdogTimestamp": "Sun 2021-03-14 00:08:37 UTC", "WatchdogTimestampMonotonic": "358411096293", "WatchdogUSec": "0"}} | |
TASK [mysql_db : Add Password _raw_params=echo "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '{{ mysqldb_root_password | mandatory }}';" | mysql;] *** | |
[0;31mfatal: [db]: FAILED! => {"ansible_facts": {}, "changed": true, "cmd": "echo \"ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root_password';\" | mysql;", "delta": "0:00:00.025618", "end": "2021-03-14 00:08:56.743861", "msg": "non-zero return code", "rc": 1, "start": "2021-03-14 00:08:56.718243", "stderr": "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)", "stderr_lines": ["ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)"], "stdout": "", "stdout_lines": []} | |
PLAY RECAP ********************************************************************* | |
[0;31mdb : [0;32mok=6 changed=0 unreachable=0 [0;31mfailed=1 [0;36mskipped=1 rescued=0 ignored=0 | |
2021/03/14 00:09:01 ✓ [2.3 MysqlDB Role (CentOS 7)] => apply 'mysql_db_user' role (1), 5.038s | |
2021/03/14 00:09:06 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db_user' role again | |
2021/03/14 00:09:06 Result: exit status 1 | |
2021/03/14 00:09:06 Output: | |
[0;34mNo config file found; using defaults | |
PLAY [db] ********************************************************************** | |
TASK [mysql_db_user : Create DataBase name={{ mysqldb_database }}, state=present, login_user=root, login_password={{ mysqldb_root_password }}] *** | |
[0;32mok: [db] => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "db": "jdoe_db", "db_list": ["jdoe_db"], "executed_commands": []} | |
TASK [mysql_db_user : Create DataBase User login_user=root, login_password={{ mysqldb_root_password }}, name={{ mysqldb_user }}, password={{ mysqldb_password }}, priv=*.*:ALL,GRANT, state=present, host=%] *** | |
[0;33mchanged: [db] => {"ansible_facts": {}, "changed": true, "msg": "Privileges updated", "user": "jdoe"} | |
PLAY RECAP ********************************************************************* | |
[0;33mdb : [0;32mok=2 [0;33mchanged=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |
2021-03-14 00:09:06,470 p=17277 u=root n=ansible | db : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |
2021/03/14 00:09:06 ✓ [2.3 MysqlDB Role (CentOS 7)] => db service is enabled (1), 240ms | |
2021/03/14 00:09:07 ✓ [2.3 MysqlDB Role (CentOS 7)] => db service is active (1), 253ms | |
2021/03/14 00:09:07 ✓ [2.3 MysqlDB Role (CentOS 7)] => db service is running on 3306 (1), 166ms | |
2021/03/14 00:09:07 ✓ [2.3 MysqlDB Role (CentOS 7)] => db root password set (1), 259ms | |
2021/03/14 00:09:08 ✓ [2.3 MysqlDB Role (CentOS 7)] => custom db user (non-root) created (1), 888ms | |
2021/03/14 00:12:19 ✓ [2.3 MysqlDB Role (CentOS 7)] => apply 'mysql_db' role (Not ROOT) (1), 3m10.905s | |
2021/03/14 00:12:28 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db' role (Not ROOT) again | |
2021/03/14 00:12:28 Result: exit status 2 | |
2021/03/14 00:12:28 Output: | |
PLAY [db] ********************************************************************** | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;32mok: [db] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;32mok: [db] | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;32mok: [db] | |
TASK [mysql_db : Install MySQL rpm] ******************************************** | |
[0;32mok: [db] | |
TASK [mysql_db : Install MySQL] ************************************************ | |
[0;32mok: [db] | |
TASK [mysql_db : Point 3] ****************************************************** | |
[0;36mskipping: [db] | |
TASK [mysql_db : Ensure Service Enabled and Running] *************************** | |
[0;32mok: [db] | |
TASK [mysql_db : Add Password] ************************************************* | |
[0;31mfatal: [db]: FAILED! => {"ansible_facts": {}, "changed": true, "cmd": "echo \"ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root_password';\" | mysql;", "delta": "0:00:00.018188", "end": "2021-03-14 00:12:28.276539", "msg": "non-zero return code", "rc": 1, "start": "2021-03-14 00:12:28.258351", "stderr": "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)", "stderr_lines": ["ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)"], "stdout": "", "stdout_lines": []} | |
PLAY RECAP ********************************************************************* | |
[0;31mdb : [0;32mok=6 changed=0 unreachable=0 [0;31mfailed=1 [0;36mskipped=1 rescued=0 ignored=0 | |
2021/03/14 00:12:31 ✓ [2.3 MysqlDB Role (CentOS 7)] => apply 'mysql_db_user' role (Not ROOT) (1), 3.355s | |
2021/03/14 00:12:35 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db_user' role (Not ROOT) again | |
2021/03/14 00:12:35 Result: exit status 1 | |
2021/03/14 00:12:35 Output: | |
PLAY [db] ********************************************************************** | |
TASK [mysql_db_user : Create DataBase] ***************************************** | |
[0;32mok: [db] | |
TASK [mysql_db_user : Create DataBase User] ************************************ | |
[0;33mchanged: [db] | |
PLAY RECAP ********************************************************************* | |
[0;33mdb : [0;32mok=2 [0;33mchanged=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |
2021-03-14 00:12:35,644 p=30314 u=root n=ansible | db : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |
2021/03/14 00:12:37 ----------------------------------------------------------------------------------- | |
2021/03/14 00:12:37 Tests Summary: | |
2021/03/14 00:12:37 12 (of 17) tests passed, 5 tests failed; rated as 70.59% | |
2021/03/14 00:12:37 | |
2021/03/14 00:12:37 Time Spent: 10m50.131s | |
2021/03/14 00:12:37 ----------------------------------------------------------------------------------- | |
name: vitali_lukashevich1, master/a4c5b61 @ 2021-03-11 21:58:36 +0000 | |
2021/03/14 00:12:37 config: tests/mysqldb-check.yml | |
2021/03/14 00:12:37 verbosity: 2 | |
2021/03/14 00:12:37 ----------------------------------------------------------------------------------- | |
2021/03/14 00:12:37 Running '2.3 MySQL DB Check', 1..16 tests | |
2021/03/14 00:12:37 ----------------------------------------------------------------------------------- | |
2021/03/14 00:12:41 ✓ [2.3 MySQL DB Check] => 'mysql_db_check' role linter (1), 3.408s | |
2021/03/14 00:12:42 ✓ [2.3 MySQL DB Check] => 'role-mysqldb-check.yml' playbook syntax check (1), 676ms | |
2021/03/14 00:13:32 ✓ [2.3 MySQL DB Check] => apply 'role-mysqldb-check.yml' playbook (1), 50.131s | |
2021/03/14 00:14:18 ✗ [2.3 MySQL DB Check] -> apply 'mysql_db_check' role (default settings) | |
2021/03/14 00:14:18 Result: exit status 2 | |
2021/03/14 00:14:18 Output: | |
db-check | |
39ebead1f55e4dbd239913bf8e34be756b08c50eb34f91b2fad193763a17ddc9 | |
[0;34mNo config file found; using defaults | |
PLAY [db-check] **************************************************************** | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [db-check] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: mirror.datacenter.by\n * epel: mirror.datacenter.by\n * extras: mirror.datacenter.by\n * updates: mirror.datacenter.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 22 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum": "8737dfddd75e3dea4f181882d8b12938f71d57d3", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "9683cb6c364010ff090bc892eea9d8f9", "mode": "0644", "owner": "root", "size": 52, "src": "/root/.ansible/tmp/ansible_mitogen_action_dc8ed85f7e0a677e/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "mysqldb-check", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/opt/mysqldb-check", "name": "mysqldb-check", "shell": "/sbin/nologin", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [mysql_db_check : Create Folder Bin] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check/bin", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Create Folder Conf] ************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check/config", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Download Aplication] ************************************ | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "aa78532d520cf2f82ccc587af851596c0d17d08c", "dest": "/opt/mysqldb-check/bin/mysql-check", "elapsed": 3, "gid": 1001, "group": "mysqldb-check", "md5sum": "0b5a84cf51fcf79480b4f36b4c88153b", "mode": "0755", "msg": "OK (1818876 bytes)", "owner": "mysqldb-check", "size": 1818876, "src": "/root/.ansible/tmp/ansible-moduletmp-1615680851.19-CM9mPz/tmpIFgCjm", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/mysql-check/mysql-check"} | |
TASK [mysql_db_check : Copy Configuration File] ******************************** | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "1884b73b4cb8e1850fc34f9cbf81793c0a5a44ec", "dest": "/opt/mysqldb-check/config/mysqldb-check.conf", "gid": 1001, "group": "mysqldb-check", "md5sum": "da77ec806a98e6979e94a77fbb43fa58", "mode": "0644", "owner": "mysqldb-check", "size": 10, "src": "/root/.ansible/tmp/ansible_mitogen_action_02ff62ea85f6e51d/source", "state": "file", "uid": 1001} | |
TASK [mysql_db_check : Copy mysqldb check Service File] ************************ | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "28186346a2f298e93e83c084e22d2cf89837763a", "dest": "/etc/systemd/system/mysqldb-check.service", "gid": 0, "group": "root", "md5sum": "89c751d76f8759a937eb010ea40b5a87", "mode": "0644", "owner": "root", "size": 301, "src": "/root/.ansible/tmp/ansible_mitogen_action_599456d793c064d6/source", "state": "file", "uid": 0} | |
TASK [mysql_db_check : Ensure Service Enabled and Running] ********************* | |
[0;31mfatal: [db-check]: FAILED! => {"ansible_facts": {}, "changed": false, "msg": "Unable to start service mysqldb-check: Job for mysqldb-check.service failed because a configured resource limit was exceeded. See \"systemctl status mysqldb-check.service\" and \"journalctl -xe\" for details.\n"} | |
RUNNING HANDLER [mysql_db_check : mysqldb-check restart] *********************** | |
PLAY RECAP ********************************************************************* | |
[0;31mdb-check : [0;32mok=11 [0;33mchanged=11 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
2021/03/14 00:14:18 ✗ [2.3 MySQL DB Check] -> service responds 200 (after initial rollout) | |
2021/03/14 00:14:18 Result: exit status 7 | |
2021/03/14 00:14:18 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/14 00:14:25 ✗ [2.3 MySQL DB Check] -> idempotency check (apply the role twice) | |
2021/03/14 00:14:25 Result: exit status 1 | |
2021/03/14 00:14:25 Output: | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[1;35m[WARNING]: Unhandled error in Python interpreter discovery for host db-check: | |
[1;35merror occurred on host 39ebead1f55e: EOF on stream; last 100 lines received: | |
[1;35m>>> /etc/sudoers.d/mysqldb-check: syntax error near line 1 <<< sudo: parse | |
[1;35merror in /etc/sudoers.d/mysqldb-check near line 1 sudo: no valid sudoers | |
[1;35msources found, quitting sudo: unable to initialize policy plugin | |
(run, /tmp/students-2/vitali_lukashevich1/day2/2.3) => ansible-playbook testing-role-mysqldb-check.yml -i db-check, -v | |
rc: 2 | |
output: | | |
[0;34mNo config file found; using defaults | |
PLAY [db-check] **************************************************************** | |
TASK [base : Install base packages] ******************************************** | |
[0;31mfatal: [db-check]: FAILED! => {"msg": "error occurred on host 39ebead1f55e: EOF on stream; last 100 lines received:\n>>> /etc/sudoers.d/mysqldb-check: syntax error near line 1 <<<\nsudo: parse error in /etc/sudoers.d/mysqldb-check near line 1\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin"} | |
PLAY RECAP ********************************************************************* | |
[0;31mdb-check : ok=0 changed=0 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
CMD Failed: ansible-playbook testing-role-mysqldb-check.yml -i db-check, -v | |
2021/03/14 00:14:25 ✗ [2.3 MySQL DB Check] -> service responds 200 (after idempotancy check) | |
2021/03/14 00:14:25 Result: exit status 7 | |
2021/03/14 00:14:25 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/14 00:14:25 ✓ [2.3 MySQL DB Check] => service is enabled (1), 187ms | |
2021/03/14 00:14:25 ✓ [2.3 MySQL DB Check] => service runs under proper user/group (1), 304ms | |
2021/03/14 00:14:25 ✓ [2.3 MySQL DB Check] => application user has no password set (1), 157ms | |
2021/03/14 00:15:11 ✗ [2.3 MySQL DB Check] -> trying another application port | |
2021/03/14 00:15:11 Result: exit status 2 | |
2021/03/14 00:15:11 Output: | |
db-check | |
0fb4272b71d13083444b09f591d3a23b13b5135ba9fd072b400eda01df045a9e | |
[0;34mNo config file found; using defaults | |
PLAY [db-check] **************************************************************** | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [db-check] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: mirror.datacenter.by\n * epel: mirror.datacenter.by\n * extras: mirror.datacenter.by\n * updates: mirror.datacenter.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 27 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum": "8737dfddd75e3dea4f181882d8b12938f71d57d3", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "9683cb6c364010ff090bc892eea9d8f9", "mode": "0644", "owner": "root", "size": 52, "src": "/root/.ansible/tmp/ansible_mitogen_action_25c605b0e4b5e9e9/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "mysqldb-check", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/opt/mysqldb-check", "name": "mysqldb-check", "shell": "/sbin/nologin", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [mysql_db_check : Create Folder Bin] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check/bin", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Create Folder Conf] ************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check/config", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Download Aplication] ************************************ | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "aa78532d520cf2f82ccc587af851596c0d17d08c", "dest": "/opt/mysqldb-check/bin/mysql-check", "elapsed": 2, "gid": 1001, "group": "mysqldb-check", "md5sum": "0b5a84cf51fcf79480b4f36b4c88153b", "mode": "0755", "msg": "OK (1818876 bytes)", "owner": "mysqldb-check", "size": 1818876, "src": "/root/.ansible/tmp/ansible-moduletmp-1615680904.04-V_afLR/tmpZT5_tt", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/mysql-check/mysql-check"} | |
TASK [mysql_db_check : Copy Configuration File] ******************************** | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "1884b73b4cb8e1850fc34f9cbf81793c0a5a44ec", "dest": "/opt/mysqldb-check/config/mysqldb-check.conf", "gid": 1001, "group": "mysqldb-check", "md5sum": "da77ec806a98e6979e94a77fbb43fa58", "mode": "0644", "owner": "mysqldb-check", "size": 10, "src": "/root/.ansible/tmp/ansible_mitogen_action_35f635eda510da32/source", "state": "file", "uid": 1001} | |
TASK [mysql_db_check : Copy mysqldb check Service File] ************************ | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "28186346a2f298e93e83c084e22d2cf89837763a", "dest": "/etc/systemd/system/mysqldb-check.service", "gid": 0, "group": "root", "md5sum": "89c751d76f8759a937eb010ea40b5a87", "mode": "0644", "owner": "root", "size": 301, "src": "/root/.ansible/tmp/ansible_mitogen_action_aec184bbcdfdfca5/source", "state": "file", "uid": 0} | |
TASK [mysql_db_check : Ensure Service Enabled and Running] ********************* | |
[0;31mfatal: [db-check]: FAILED! => {"ansible_facts": {}, "changed": false, "msg": "Unable to start service mysqldb-check: Job for mysqldb-check.service failed because a configured resource limit was exceeded. See \"systemctl status mysqldb-check.service\" and \"journalctl -xe\" for details.\n"} | |
RUNNING HANDLER [mysql_db_check : mysqldb-check restart] *********************** | |
PLAY RECAP ********************************************************************* | |
[0;31mdb-check : [0;32mok=11 [0;33mchanged=11 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
2021/03/14 00:15:59 ✗ [2.3 MySQL DB Check] -> trying another application home dir | |
2021/03/14 00:15:59 Result: exit status 2 | |
2021/03/14 00:15:59 Output: | |
db-check | |
e52ff56016490646288468dfa5aaf1a8c4af113caecbc5e856c7bf7c0366af6e | |
[0;34mNo config file found; using defaults | |
PLAY [db-check] **************************************************************** | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [db-check] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: ftp.byfly.by\n * epel: mirror.datacenter.by\n * extras: ftp.byfly.by\n * updates: ftp.byfly.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 24 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum": "8737dfddd75e3dea4f181882d8b12938f71d57d3", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "9683cb6c364010ff090bc892eea9d8f9", "mode": "0644", "owner": "root", "size": 52, "src": "/root/.ansible/tmp/ansible_mitogen_action_f5d816003905b6ca/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "mysqldb-check", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/opt/mysqldb-check-test", "name": "mysqldb-check", "shell": "/sbin/nologin", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [mysql_db_check : Create Folder Bin] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check-test/bin", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Create Folder Conf] ************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check-test/config", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Download Aplication] ************************************ | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "aa78532d520cf2f82ccc587af851596c0d17d08c", "dest": "/opt/mysqldb-check-test/bin/mysql-check", "elapsed": 2, "gid": 1001, "group": "mysqldb-check", "md5sum": "0b5a84cf51fcf79480b4f36b4c88153b", "mode": "0755", "msg": "OK (1818876 bytes)", "owner": "mysqldb-check", "size": 1818876, "src": "/root/.ansible/tmp/ansible-moduletmp-1615680952.4-kiltE2/tmp9nQUHY", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/mysql-check/mysql-check"} | |
TASK [mysql_db_check : Copy Configuration File] ******************************** | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "1884b73b4cb8e1850fc34f9cbf81793c0a5a44ec", "dest": "/opt/mysqldb-check-test/config/mysqldb-check.conf", "gid": 1001, "group": "mysqldb-check", "md5sum": "da77ec806a98e6979e94a77fbb43fa58", "mode": "0644", "owner": "mysqldb-check", "size": 10, "src": "/root/.ansible/tmp/ansible_mitogen_action_c4dbd8548fa902b1/source", "state": "file", "uid": 1001} | |
TASK [mysql_db_check : Copy mysqldb check Service File] ************************ | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "26e0ae8c7be9c8775c866985c782d538424088cd", "dest": "/etc/systemd/system/mysqldb-check.service", "gid": 0, "group": "root", "md5sum": "5b4a7b3555f0943a624637a8e241d958", "mode": "0644", "owner": "root", "size": 311, "src": "/root/.ansible/tmp/ansible_mitogen_action_0b686877caa067a1/source", "state": "file", "uid": 0} | |
TASK [mysql_db_check : Ensure Service Enabled and Running] ********************* | |
[0;31mfatal: [db-check]: FAILED! => {"ansible_facts": {}, "changed": false, "msg": "Unable to start service mysqldb-check: Job for mysqldb-check.service failed because a configured resource limit was exceeded. See \"systemctl status mysqldb-check.service\" and \"journalctl -xe\" for details.\n"} | |
RUNNING HANDLER [mysql_db_check : mysqldb-check restart] *********************** | |
PLAY RECAP ********************************************************************* | |
[0;31mdb-check : [0;32mok=11 [0;33mchanged=11 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
2021/03/14 00:16:48 ✗ [2.3 MySQL DB Check] -> trying another application user | |
2021/03/14 00:16:48 Result: exit status 2 | |
2021/03/14 00:16:48 Output: | |
db-check | |
91b2d827ad9e3833b01b27f890699bf128e23d6eb2e5204eee4f17f292cb863b | |
[0;34mNo config file found; using defaults | |
PLAY [db-check] **************************************************************** | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [db-check] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: ftp.byfly.by\n * epel: mirror.datacenter.by\n * extras: ftp.byfly.by\n * updates: ftp.byfly.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 22 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum": "8737dfddd75e3dea4f181882d8b12938f71d57d3", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "9683cb6c364010ff090bc892eea9d8f9", "mode": "0644", "owner": "root", "size": 52, "src": "/root/.ansible/tmp/ansible_mitogen_action_1fca898444c89c12/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "mysqldb-check-test", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/opt/mysqldb-check", "name": "mysqldb-check-test", "shell": "/sbin/nologin", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [mysql_db_check : Create Folder Bin] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check-test", "mode": "0755", "owner": "mysqldb-check-test", "path": "/opt/mysqldb-check/bin", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Create Folder Conf] ************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check-test", "mode": "0755", "owner": "mysqldb-check-test", "path": "/opt/mysqldb-check/config", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Download Aplication] ************************************ | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "aa78532d520cf2f82ccc587af851596c0d17d08c", "dest": "/opt/mysqldb-check/bin/mysql-check", "elapsed": 0, "gid": 1001, "group": "mysqldb-check-test", "md5sum": "0b5a84cf51fcf79480b4f36b4c88153b", "mode": "0755", "msg": "OK (1818876 bytes)", "owner": "mysqldb-check-test", "size": 1818876, "src": "/root/.ansible/tmp/ansible-moduletmp-1615681003.35-lmSGjl/tmpNmeSgi", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/mysql-check/mysql-check"} | |
TASK [mysql_db_check : Copy Configuration File] ******************************** | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "1884b73b4cb8e1850fc34f9cbf81793c0a5a44ec", "dest": "/opt/mysqldb-check/config/mysqldb-check.conf", "gid": 1001, "group": "mysqldb-check-test", "md5sum": "da77ec806a98e6979e94a77fbb43fa58", "mode": "0644", "owner": "mysqldb-check-test", "size": 10, "src": "/root/.ansible/tmp/ansible_mitogen_action_477cccc83961ab0f/source", "state": "file", "uid": 1001} | |
TASK [mysql_db_check : Copy mysqldb check Service File] ************************ | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "0702dcf2101321b0044dbac9b14df134b7069638", "dest": "/etc/systemd/system/mysqldb-check.service", "gid": 0, "group": "root", "md5sum": "5eb6b125a749e9161709b2a928c260ae", "mode": "0644", "owner": "root", "size": 311, "src": "/root/.ansible/tmp/ansible_mitogen_action_90c4c0b379da1a34/source", "state": "file", "uid": 0} | |
TASK [mysql_db_check : Ensure Service Enabled and Running] ********************* | |
[0;31mfatal: [db-check]: FAILED! => {"ansible_facts": {}, "changed": false, "msg": "Unable to start service mysqldb-check: Job for mysqldb-check.service failed because a configured resource limit was exceeded. See \"systemctl status mysqldb-check.service\" and \"journalctl -xe\" for details.\n"} | |
RUNNING HANDLER [mysql_db_check : mysqldb-check restart] *********************** | |
PLAY RECAP ********************************************************************* | |
[0;31mdb-check : [0;32mok=11 [0;33mchanged=11 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
2021/03/14 00:17:40 ✗ [2.3 MySQL DB Check] -> trying another application group | |
2021/03/14 00:17:40 Result: exit status 2 | |
2021/03/14 00:17:40 Output: | |
db-check | |
0618d7fde8b0f0e3b7de1721d48e2fb2a92f8cf4fd6e2dfcb4fec160243c8253 | |
[0;34mNo config file found; using defaults | |
PLAY [db-check] **************************************************************** | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [db-check] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: mirror.datacenter.by\n * epel: mirror.datacenter.by\n * extras: mirror.datacenter.by\n * updates: mirror.datacenter.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 14 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum": "8737dfddd75e3dea4f181882d8b12938f71d57d3", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "9683cb6c364010ff090bc892eea9d8f9", "mode": "0644", "owner": "root", "size": 52, "src": "/root/.ansible/tmp/ansible_mitogen_action_e6de29c116785fd7/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "mysqldb-check-test", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/opt/mysqldb-check", "name": "mysqldb-check", "shell": "/sbin/nologin", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [mysql_db_check : Create Folder Bin] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check-test", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check/bin", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Create Folder Conf] ************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check-test", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check/config", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Download Aplication] ************************************ | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "aa78532d520cf2f82ccc587af851596c0d17d08c", "dest": "/opt/mysqldb-check/bin/mysql-check", "elapsed": 0, "gid": 1001, "group": "mysqldb-check-test", "md5sum": "0b5a84cf51fcf79480b4f36b4c88153b", "mode": "0755", "msg": "OK (1818876 bytes)", "owner": "mysqldb-check", "size": 1818876, "src": "/root/.ansible/tmp/ansible-moduletmp-1615681055.49-1020Rz/tmpILg555", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/mysql-check/mysql-check"} | |
TASK [mysql_db_check : Copy Configuration File] ******************************** | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "1884b73b4cb8e1850fc34f9cbf81793c0a5a44ec", "dest": "/opt/mysqldb-check/config/mysqldb-check.conf", "gid": 1001, "group": "mysqldb-check-test", "md5sum": "da77ec806a98e6979e94a77fbb43fa58", "mode": "0644", "owner": "mysqldb-check", "size": 10, "src": "/root/.ansible/tmp/ansible_mitogen_action_51422a5266288fff/source", "state": "file", "uid": 1001} | |
TASK [mysql_db_check : Copy mysqldb check Service File] ************************ | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "f6d5898f6100c843c9a04aced4a1f8f910f60666", "dest": "/etc/systemd/system/mysqldb-check.service", "gid": 0, "group": "root", "md5sum": "70f2d823b54223728d753c3fd1119b57", "mode": "0644", "owner": "root", "size": 306, "src": "/root/.ansible/tmp/ansible_mitogen_action_99c526b0ad4475b1/source", "state": "file", "uid": 0} | |
TASK [mysql_db_check : Ensure Service Enabled and Running] ********************* | |
[0;31mfatal: [db-check]: FAILED! => {"ansible_facts": {}, "changed": false, "msg": "Unable to start service mysqldb-check: Job for mysqldb-check.service failed because a configured resource limit was exceeded. See \"systemctl status mysqldb-check.service\" and \"journalctl -xe\" for details.\n"} | |
RUNNING HANDLER [mysql_db_check : mysqldb-check restart] *********************** | |
PLAY RECAP ********************************************************************* | |
[0;31mdb-check : [0;32mok=11 [0;33mchanged=11 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
2021/03/14 00:18:27 ✗ [2.3 MySQL DB Check] -> rollout (Not ROOT) | |
2021/03/14 00:18:27 Result: exit status 2 | |
2021/03/14 00:18:27 Output: | |
db-check | |
5e93639de303b57139bc72f8ef75c18288aea4c87a44a722c53fe879ce6fa8b7 | |
[0;34mNo config file found; using defaults | |
PLAY [db-check] **************************************************************** | |
TASK [base : Install base packages] ******************************************** | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[0;33mchanged: [db-check] => (item=['epel-release', 'python3-pip', 'curl', 'wget', 'sudo', 'iproute']) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "ansible_loop_var": "item", "changed": true, "changes": {"installed": ["python3-pip", "wget"]}, "item": ["epel-release", "python3-pip", "curl", "wget", "sudo", "iproute"], "msg": "", "rc": 0, "results": ["epel-release-7-11.noarch providing epel-release is already installed", "curl-7.29.0-51.el7.x86_64 providing curl is already installed", "sudo-1.8.23-3.el7.x86_64 providing sudo is already installed", "iproute-4.11.0-14.el7.x86_64 providing iproute is already installed", "Loaded plugins: fastestmirror, ovl\nDetermining fastest mirrors\n * base: mirror.datacenter.by\n * epel: mirror.datacenter.by\n * extras: mirror.datacenter.by\n * updates: mirror.datacenter.by\nResolving Dependencies\n--> Running transaction check\n---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed\n--> Processing Dependency: python(abi) = 3.6 for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: python3-setuptools for package: python3-pip-9.0.3-8.el7.noarch\n--> Processing Dependency: /usr/bin/python3 for package: python3-pip-9.0.3-8.el7.noarch\n---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed\n--> Running transaction check\n---> Package python3.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: python3-libs(x86-64) = 3.6.8-18.el7 for package: python3-3.6.8-18.el7.x86_64\n--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-18.el7.x86_64\n---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed\n--> Running transaction check\n---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed\n--> Processing Dependency: libtirpc.so.1()(64bit) for package: python3-libs-3.6.8-18.el7.x86_64\n--> Running transaction check\n---> Package libtirpc.x86_64 0:0.2.4-0.16.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python3-pip noarch 9.0.3-8.el7 base 1.6 M\n wget x86_64 1.14-18.el7_6.1 base 547 k\nInstalling for dependencies:\n libtirpc x86_64 0.2.4-0.16.el7 base 89 k\n python3 x86_64 3.6.8-18.el7 updates 70 k\n python3-libs x86_64 3.6.8-18.el7 updates 6.9 M\n python3-setuptools noarch 39.2.0-10.el7 base 629 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 9.9 M\nInstalled size: 50 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 23 MB/s | 9.9 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Installing : python3-pip-9.0.3-8.el7.noarch 2/6 \n Installing : python3-setuptools-39.2.0-10.el7.noarch 3/6 \n Installing : python3-3.6.8-18.el7.x86_64 4/6 \n Installing : python3-libs-3.6.8-18.el7.x86_64 5/6 \n Installing : wget-1.14-18.el7_6.1.x86_64 6/6 \ninstall-info: No such file or directory for /usr/share/info/wget.info.gz\n Verifying : libtirpc-0.2.4-0.16.el7.x86_64 1/6 \n Verifying : python3-3.6.8-18.el7.x86_64 2/6 \n Verifying : python3-libs-3.6.8-18.el7.x86_64 3/6 \n Verifying : python3-pip-9.0.3-8.el7.noarch 4/6 \n Verifying : python3-setuptools-39.2.0-10.el7.noarch 5/6 \n Verifying : wget-1.14-18.el7_6.1.x86_64 6/6 \n\nInstalled:\n python3-pip.noarch 0:9.0.3-8.el7 wget.x86_64 0:1.14-18.el7_6.1 \n\nDependency Installed:\n libtirpc.x86_64 0:0.2.4-0.16.el7 python3.x86_64 0:3.6.8-18.el7 \n python3-libs.x86_64 0:3.6.8-18.el7 python3-setuptools.noarch 0:39.2.0-10.el7 \n\nComplete!\n"]} | |
TASK [base : Create folder for gathering facts] ******************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ansible/facts.d", "size": 4096, "state": "directory", "uid": 0} | |
TASK [base : Collect all facts in folder] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum": "8737dfddd75e3dea4f181882d8b12938f71d57d3", "dest": "/etc/ansible/facts.d/facts.json", "gid": 0, "group": "root", "md5sum": "9683cb6c364010ff090bc892eea9d8f9", "mode": "0644", "owner": "root", "size": 52, "src": "/root/.ansible/tmp/ansible_mitogen_action_5998564fc3dd6e03/source", "state": "file", "uid": 0} | |
TASK [user : Create Group] ***************************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "name": "mysqldb-check", "state": "present", "system": false} | |
TASK [user : Add User] ********************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "comment": "", "create_home": true, "group": 1001, "home": "/opt/mysqldb-check", "name": "mysqldb-check", "shell": "/sbin/nologin", "state": "present", "system": false, "uid": 1001} | |
TASK [user : Add User to sudo] ************************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "backup": "", "changed": true, "msg": "line added and ownership, perms or SE linux context changed"} | |
TASK [mysql_db_check : Create Folder Bin] ************************************** | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check/bin", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Create Folder Conf] ************************************* | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "gid": 1001, "group": "mysqldb-check", "mode": "0755", "owner": "mysqldb-check", "path": "/opt/mysqldb-check/config", "size": 4096, "state": "directory", "uid": 1001} | |
TASK [mysql_db_check : Download Aplication] ************************************ | |
[0;33mchanged: [db-check] => {"ansible_facts": {}, "changed": true, "checksum_dest": null, "checksum_src": "aa78532d520cf2f82ccc587af851596c0d17d08c", "dest": "/opt/mysqldb-check/bin/mysql-check", "elapsed": 2, "gid": 1001, "group": "mysqldb-check", "md5sum": "0b5a84cf51fcf79480b4f36b4c88153b", "mode": "0755", "msg": "OK (1818876 bytes)", "owner": "mysqldb-check", "size": 1818876, "src": "/root/.ansible/tmp/ansible-moduletmp-1615681100.98-rdS35N/tmpT4WsHB", "state": "file", "status_code": 200, "uid": 1001, "url": "https://playpit-labs-assets.s3-eu-west-1.amazonaws.com/mysql-check/mysql-check"} | |
TASK [mysql_db_check : Copy Configuration File] ******************************** | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "1884b73b4cb8e1850fc34f9cbf81793c0a5a44ec", "dest": "/opt/mysqldb-check/config/mysqldb-check.conf", "gid": 1001, "group": "mysqldb-check", "md5sum": "da77ec806a98e6979e94a77fbb43fa58", "mode": "0644", "owner": "mysqldb-check", "size": 10, "src": "/root/.ansible/tmp/ansible_mitogen_action_cf4bab01e8d97d8e/source", "state": "file", "uid": 1001} | |
TASK [mysql_db_check : Copy mysqldb check Service File] ************************ | |
[0;33mchanged: [db-check] => {"changed": true, "checksum": "28186346a2f298e93e83c084e22d2cf89837763a", "dest": "/etc/systemd/system/mysqldb-check.service", "gid": 0, "group": "root", "md5sum": "89c751d76f8759a937eb010ea40b5a87", "mode": "0644", "owner": "root", "size": 301, "src": "/root/.ansible/tmp/ansible_mitogen_action_04eb7d83c742f2ae/source", "state": "file", "uid": 0} | |
TASK [mysql_db_check : Ensure Service Enabled and Running] ********************* | |
[0;31mfatal: [db-check]: FAILED! => {"ansible_facts": {}, "changed": false, "msg": "Unable to start service mysqldb-check: Job for mysqldb-check.service failed because a configured resource limit was exceeded. See \"systemctl status mysqldb-check.service\" and \"journalctl -xe\" for details.\n"} | |
RUNNING HANDLER [mysql_db_check : mysqldb-check restart] *********************** | |
PLAY RECAP ********************************************************************* | |
[0;31mdb-check : [0;32mok=11 [0;33mchanged=11 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
2021/03/14 00:18:37 ✗ [2.3 MySQL DB Check] -> idempotency check (Not ROOT) | |
2021/03/14 00:18:37 Result: exit status 1 | |
2021/03/14 00:18:37 Output: | |
[0;35m[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via | |
[0;35msquash_actions is deprecated. Instead of using a loop to supply multiple items | |
[0;35mand specifying `name: "{{ item }}"`, please use `name: '{{ package }}'` and | |
[0;35mremove the loop. This feature will be removed from ansible-base in version | |
[0;35m2.11. Deprecation warnings can be disabled by setting | |
[0;35mdeprecation_warnings=False in ansible.cfg. | |
[1;35m[WARNING]: Unhandled error in Python interpreter discovery for host db-check: | |
[1;35merror occurred on host 5e93639de303: EOF on stream; last 100 lines received: | |
[1;35m>>> /etc/sudoers.d/mysqldb-check: syntax error near line 1 <<< sudo: parse | |
[1;35merror in /etc/sudoers.d/mysqldb-check near line 1 sudo: no valid sudoers | |
[1;35msources found, quitting sudo: unable to initialize policy plugin | |
(run, /tmp/students-2/vitali_lukashevich1/day2/2.3) => ansible-playbook testing-role-mysqldb-check.yml -i db-check, -v -u devops | |
rc: 2 | |
output: | | |
[0;34mNo config file found; using defaults | |
PLAY [db-check] **************************************************************** | |
TASK [base : Install base packages] ******************************************** | |
[0;31mfatal: [db-check]: FAILED! => {"msg": "error occurred on host 5e93639de303: EOF on stream; last 100 lines received:\n>>> /etc/sudoers.d/mysqldb-check: syntax error near line 1 <<<\nsudo: parse error in /etc/sudoers.d/mysqldb-check near line 1\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin"} | |
PLAY RECAP ********************************************************************* | |
[0;31mdb-check : ok=0 changed=0 unreachable=0 [0;31mfailed=1 skipped=0 rescued=0 ignored=0 | |
CMD Failed: | |
2021/03/14 00:18:38 ----------------------------------------------------------------------------------- | |
2021/03/14 00:18:38 Tests Summary: | |
2021/03/14 00:18:38 6 (of 16) tests passed, 10 tests failed; rated as 37.50% | |
2021/03/14 00:18:38 | |
2021/03/14 00:18:38 Time Spent: 6m1.555s | |
2021/03/14 00:18:38 ----------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment