-
-
Save sbeliakou/02e0909c667a9c59dced6e05be21c46f 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 'yaroslav_kurapov'... | |
name: yaroslav_kurapov, master/478cbc8 @ 2021-03-11 21:54:37 +0000 | |
2021/03/14 00:34:40 config: tests/encryption.yml | |
2021/03/14 00:34:40 verbosity: 2 | |
2021/03/14 00:34:40 ----------------------------------------------------------------------------------- | |
2021/03/14 00:34:40 Running '2.1 Working with Secrets', 1..8 tests | |
2021/03/14 00:34:40 ----------------------------------------------------------------------------------- | |
2021/03/14 00:34:40 ✓ [2.1 Working with Secrets] => 'spoiler1' decrypted correctly (1), 15ms | |
2021/03/14 00:34:40 ✓ [2.1 Working with Secrets] => 'spoiler2' decrypted correctly (1), 7ms | |
2021/03/14 00:34:40 ✓ [2.1 Working with Secrets] => 'spoiler3' decrypted correctly (1), 10ms | |
2021/03/14 00:34:40 ✓ [2.1 Working with Secrets] => 'spoiler4' decrypted correctly (1), 10ms | |
2021/03/14 00:34:42 ✓ [2.1 Working with Secrets] => 'secret1' encrypted with tag=dev (v1.2/AES256) (1), 29ms | |
2021/03/14 00:34:42 ✓ [2.1 Working with Secrets] => 'secret2' encrypted with tag=test (v1.2/AES256) (1), 30ms | |
2021/03/14 00:34:42 ✓ [2.1 Working with Secrets] => 'secret3' encrypted with tag=stage (v1.2/AES256) (1), 30ms | |
2021/03/14 00:34:42 ✓ [2.1 Working with Secrets] => 'secret4' encrypted with tag=prod (v1.2/AES256) (1), 20ms | |
2021/03/14 00:34:42 ----------------------------------------------------------------------------------- | |
2021/03/14 00:34:42 Tests Summary: | |
2021/03/14 00:34:42 8 (of 8) tests passed, 0 tests failed; rated as 100.00% | |
2021/03/14 00:34:42 | |
2021/03/14 00:34:42 Time Spent: 1.646s | |
2021/03/14 00:34:42 ----------------------------------------------------------------------------------- | |
name: yaroslav_kurapov, master/478cbc8 @ 2021-03-11 21:54:37 +0000 | |
2021/03/14 00:34:42 config: tests/role-deps.yml | |
2021/03/14 00:34:42 verbosity: 2 | |
2021/03/14 00:34:42 ----------------------------------------------------------------------------------- | |
2021/03/14 00:34:42 Running '2.2 Role Dependencies', 1..17 tests | |
2021/03/14 00:34:42 ----------------------------------------------------------------------------------- | |
2021/03/14 00:34:45 ✗ [2.2 Role Dependencies] -> 'base' linter | |
2021/03/14 00:34:45 Result: exit status 2 | |
2021/03/14 00:34:45 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
WARNING Listing 1 violation(s) that are fatal | |
unnamed-task: All tasks should be named | |
roles/base/tasks/main.yml:3 Task/Handler: debug msg=running base role | |
You can skip specific rules or tags by adding them to your configuration file: | |
# .ansible-lint | |
warn_list: # or 'skip_list' to silence them completely | |
- unnamed-task # All tasks should be named | |
Finished with [1;34m1 failure(s), [1;34m0 warning(s) on [1;34m8 files. | |
2021/03/14 00:34:47 ✗ [2.2 Role Dependencies] -> 'java' linter | |
2021/03/14 00:34:47 Result: exit status 2 | |
2021/03/14 00:34:47 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
WARNING Listing 2 violation(s) that are fatal | |
meta-no-tags: Tags must be strings: 'AnsibleMapping([('role', 'base'), ('__line__', 43), ('__file__', PosixPath('roles/java/meta/main.yml'))])' | |
:0 | |
unnamed-task: All tasks should be named | |
roles/java/tasks/main.yml:3 Task/Handler: debug msg=running java role | |
You can skip specific rules or tags by adding them to your configuration file: | |
# .ansible-lint | |
warn_list: # or 'skip_list' to silence them completely | |
- meta-no-tags # Tags must contain lowercase letters and digits only | |
- unnamed-task # All tasks should be named | |
Finished with [1;34m2 failure(s), [1;34m0 warning(s) on [1;34m8 files. | |
2021/03/14 00:34:50 ✗ [2.2 Role Dependencies] -> 'tomcat' linter | |
2021/03/14 00:34:50 Result: exit status 1 | |
2021/03/14 00:34:50 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
Failed to parse YAML in roles/tomcat/meta/main.yml: while scanning a simple key | |
in "<unicode string>", line 54, column 1 | |
could not find expected ':' | |
in "<unicode string>", line 55, column 19 | |
2021/03/14 00:34:52 ✗ [2.2 Role Dependencies] -> 'nginx-base' linter | |
2021/03/14 00:34:52 Result: exit status 2 | |
2021/03/14 00:34:52 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
WARNING Listing 1 violation(s) that are fatal | |
unnamed-task: All tasks should be named | |
roles/nginx-base/tasks/main.yml:3 Task/Handler: debug msg=running nginx-base role | |
You can skip specific rules or tags by adding them to your configuration file: | |
# .ansible-lint | |
warn_list: # or 'skip_list' to silence them completely | |
- unnamed-task # All tasks should be named | |
Finished with [1;34m1 failure(s), [1;34m0 warning(s) on [1;34m9 files. | |
2021/03/14 00:34:55 ✗ [2.2 Role Dependencies] -> 'nginx-custom' linter | |
2021/03/14 00:34:55 Result: exit status 2 | |
2021/03/14 00:34:55 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
WARNING Listing 1 violation(s) that are fatal | |
unnamed-task: All tasks should be named | |
roles/nginx-custom/tasks/main.yml:3 Task/Handler: debug msg=running nginx-custom role | |
You can skip specific rules or tags by adding them to your configuration file: | |
# .ansible-lint | |
warn_list: # or 'skip_list' to silence them completely | |
- unnamed-task # All tasks should be named | |
Finished with [1;34m1 failure(s), [1;34m0 warning(s) on [1;34m9 files. | |
2021/03/14 00:34:57 ✗ [2.2 Role Dependencies] -> 'user' linter | |
2021/03/14 00:34:57 Result: exit status 2 | |
2021/03/14 00:34:57 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
WARNING Listing 1 violation(s) that are fatal | |
unnamed-task: All tasks should be named | |
roles/user/tasks/main.yml:3 Task/Handler: debug msg=running user role | |
You can skip specific rules or tags by adding them to your configuration file: | |
# .ansible-lint | |
warn_list: # or 'skip_list' to silence them completely | |
- unnamed-task # All tasks should be named | |
Finished with [1;34m1 failure(s), [1;34m0 warning(s) on [1;34m8 files. | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'tomcat' role depends on 'java' role (1), 7ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'java' role with 'java_version' parameter (1), 9ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'tomcat' role depends on 'user' role (1), 13ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'user' role with 'user_name' parameter (1), 8ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'user' role with 'user_id' parameter (1), 13ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'user' role with 'group_id' parameter (1), 16ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'tomcat' role calls 'user' role with 'user_home' parameter (1), 10ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'tomcat' role depends on 'base' role (1), 9ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'java' role depends on 'base' role (1), 11ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'nginx-base' role depends on 'base' role (1), 12ms | |
2021/03/14 00:34:57 ✓ [2.2 Role Dependencies] => 'nginx-custom' role depends on 'nginx-base' role (1), 7ms | |
2021/03/14 00:34:57 ----------------------------------------------------------------------------------- | |
2021/03/14 00:34:57 Tests Summary: | |
2021/03/14 00:34:57 11 (of 17) tests passed, 6 tests failed; rated as 64.71% | |
2021/03/14 00:34:57 | |
2021/03/14 00:34:57 Time Spent: 15.777s | |
2021/03/14 00:34:57 ----------------------------------------------------------------------------------- | |
name: yaroslav_kurapov, master/478cbc8 @ 2021-03-11 21:54:37 +0000 | |
2021/03/14 00:34:58 config: tests/base.yml | |
2021/03/14 00:34:58 verbosity: 2 | |
2021/03/14 00:34:58 ----------------------------------------------------------------------------------- | |
2021/03/14 00:34:58 Running '2.3 Base Role (centos 7)', 1..11 tests | |
2021/03/14 00:34:58 ----------------------------------------------------------------------------------- | |
2021/03/14 00:35:04 ✗ [2.3 Base Role (centos 7)] -> Role Linter | |
2021/03/14 00:35:04 Result: exit status 1 | |
2021/03/14 00:35:04 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
JSON: Expecting value: line 2 column 1 (char 1) | |
Syntax Error while loading YAML. | |
mapping values are not allowed in this context | |
The error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/base/tasks/main.yml': line 3, column 7, but may | |
be elsewhere in the file depending on the exact syntax problem. | |
The offending line appears to be: | |
<<<<<<< HEAD | |
- name: Install packages | |
^ here | |
2021/03/14 00:35:06 ✗ [2.3 Base Role (centos 7)] -> playbook syntax check | |
2021/03/14 00:35:06 Result: exit status 4 | |
2021/03/14 00:35:06 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! Empty playbook, nothing to do | |
2021/03/14 00:35:07 ✗ [2.3 Base Role (centos 7)] -> apply role | |
2021/03/14 00:35:07 Result: exit status 4 | |
2021/03/14 00:35:07 Output: | |
--2021-03-14 00:35:06-- https://playpit-checkup.s3-eu-west-1.amazonaws.com/ansible/day2/tests/playbooks/testing-role-base.yml | |
Resolving playpit-checkup.s3-eu-west-1.amazonaws.com (playpit-checkup.s3-eu-west-1.amazonaws.com)... 52.218.25.224 | |
Connecting to playpit-checkup.s3-eu-west-1.amazonaws.com (playpit-checkup.s3-eu-west-1.amazonaws.com)|52.218.25.224|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 52 [binary/octet-stream] | |
Saving to: ‘testing-role-base.yml’ | |
0K 100% 1.30M=0s | |
2021-03-14 00:35:06 (1.30 MB/s) - ‘testing-role-base.yml’ saved [52/52] | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 2 column 1 (char 1) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/base/tasks/main.yml': line 3, column 7, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m- name: Install packages | |
[0;31m ^ here | |
2021/03/14 00:35:08 ✗ [2.3 Base Role (centos 7)] -> idempotence check (apply the role twice) | |
2021/03/14 00:35:08 Result: exit status 4 | |
2021/03/14 00:35:08 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 2 column 1 (char 1) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/base/tasks/main.yml': line 3, column 7, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m- name: Install packages | |
[0;31m ^ here | |
2021/03/14 00:35:08 ✗ [2.3 Base Role (centos 7)] -> role installs 'epel' repo | |
2021/03/14 00:35:08 Result: exit status 1 | |
2021/03/14 00:35:08 Output: | |
2021/03/14 00:35:08 ✗ [2.3 Base Role (centos 7)] -> role installs 'curl' package | |
2021/03/14 00:35:08 Result: exit status 1 | |
2021/03/14 00:35:08 Output: | |
2021/03/14 00:35:08 ✗ [2.3 Base Role (centos 7)] -> role installs 'wget' package | |
2021/03/14 00:35:08 Result: exit status 1 | |
2021/03/14 00:35:08 Output: | |
2021/03/14 00:35:08 ✗ [2.3 Base Role (centos 7)] -> role installs 'sudo' package | |
2021/03/14 00:35:08 Result: exit status 1 | |
2021/03/14 00:35:08 Output: | |
2021/03/14 00:35:08 ✗ [2.3 Base Role (centos 7)] -> role installs 'iproute' package | |
2021/03/14 00:35:08 Result: exit status 1 | |
2021/03/14 00:35:08 Output: | |
2021/03/14 00:35:08 ✗ [2.3 Base Role (centos 7)] -> role installs 'python-pip' package | |
2021/03/14 00:35:08 Result: exit status 1 | |
2021/03/14 00:35:08 Output: | |
2021/03/14 00:35:08 ✗ [2.3 Base Role (centos 7)] -> role creates ansible facts folder | |
2021/03/14 00:35:08 Result: exit status 1 | |
2021/03/14 00:35:08 Output: | |
2021/03/14 00:35:09 ----------------------------------------------------------------------------------- | |
2021/03/14 00:35:09 Tests Summary: | |
2021/03/14 00:35:09 0 (of 11) tests passed, 11 tests failed; rated as 0.00% | |
2021/03/14 00:35:09 | |
2021/03/14 00:35:09 Time Spent: 11.087s | |
2021/03/14 00:35:09 ----------------------------------------------------------------------------------- | |
name: yaroslav_kurapov, master/478cbc8 @ 2021-03-11 21:54:37 +0000 | |
2021/03/14 00:35:09 config: tests/user.yml | |
2021/03/14 00:35:09 verbosity: 2 | |
2021/03/14 00:35:09 ----------------------------------------------------------------------------------- | |
2021/03/14 00:35:09 Running '2.3 User Role (CentOS 7)', 1..17 tests | |
2021/03/14 00:35:09 ----------------------------------------------------------------------------------- | |
2021/03/14 00:35:15 ✗ [2.3 User Role (CentOS 7)] -> Role Linter | |
2021/03/14 00:35:15 Result: exit status 1 | |
2021/03/14 00:35:15 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
JSON: Expecting value: line 1 column 1 (char 0) | |
Syntax Error while loading YAML. | |
mapping values are not allowed in this context | |
The error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/user/tasks/main.yml': line 3, column 7, but may | |
be elsewhere in the file depending on the exact syntax problem. | |
The offending line appears to be: | |
- name: Create Group for Webapp-server | |
^ here | |
2021/03/14 00:35:16 ✗ [2.3 User Role (CentOS 7)] -> playbook syntax check | |
2021/03/14 00:35:16 Result: exit status 4 | |
2021/03/14 00:35:16 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! Empty playbook, nothing to do | |
2021/03/14 00:35:19 ✗ [2.3 User Role (CentOS 7)] -> apply role | |
2021/03/14 00:35:19 Result: exit status 4 | |
2021/03/14 00:35:19 Output: | |
- hosts: all | |
gather_facts: no | |
vars: | |
user_name: debug6 | |
roles: | |
- user | |
- hosts: all | |
gather_facts: no | |
roles: | |
- role: user | |
user_name: debug1 | |
- role: user | |
user_name: debug2 | |
user_group: debug2_group | |
- role: user | |
user_name: debug3 | |
user_id: 1234 | |
user_group: debug3_group | |
- role: user | |
user_name: debug4 | |
user_id: 1345 | |
user_group: debug2_group | |
user_gid: 1366 | |
- role: user | |
user_name: debug5 | |
user_home: /opt/debug5_home | |
- role: user | |
user_name: debug7 | |
user_home_create: no | |
- role: user | |
user_name: debug8 | |
user_shell: /usr/bin/false | |
- role: user | |
user_name: debug9 | |
user_sudo_privs: "ALL=(ALL) NOPASSWD:ALL" | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 2 column 1 (char 1) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/user/defaults/main.yml': line 7, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mstudent_first_name: Yaroslav | |
[0;31m^ here | |
2021/03/14 00:35:21 ✗ [2.3 User Role (CentOS 7)] -> idempotence check (apply role twice) | |
2021/03/14 00:35:21 Result: exit status 4 | |
2021/03/14 00:35:21 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 2 column 1 (char 1) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/user/defaults/main.yml': line 7, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mstudent_first_name: Yaroslav | |
[0;31m^ here | |
2021/03/14 00:35:21 ✗ [2.3 User Role (CentOS 7)] -> use "user_name" varaible | |
2021/03/14 00:35:21 Result: exit status 1 | |
2021/03/14 00:35:21 Output: | |
id: debug1: no such user | |
2021/03/14 00:35:21 ✗ [2.3 User Role (CentOS 7)] -> use "user_name", "user_group" variables | |
2021/03/14 00:35:21 Result: exit status 1 | |
2021/03/14 00:35:21 Output: | |
id: debug2: no such user | |
2021/03/14 00:35:22 ✗ [2.3 User Role (CentOS 7)] -> use "user_name", "user_id", "user_group" variables | |
2021/03/14 00:35:22 Result: exit status 1 | |
2021/03/14 00:35:22 Output: | |
id: debug3: no such user | |
2021/03/14 00:35:23 ✗ [2.3 User Role (CentOS 7)] -> use "user_name", "user_id", "user_group", "user_gid" variables | |
2021/03/14 00:35:23 Result: exit status 1 | |
2021/03/14 00:35:23 Output: | |
id: debug4: no such user | |
2021/03/14 00:35:24 ✗ [2.3 User Role (CentOS 7)] -> use "user_home" variable | |
2021/03/14 00:35:24 Result: exit status 1 | |
2021/03/14 00:35:24 Output: | |
2021/03/14 00:35:24 ✗ [2.3 User Role (CentOS 7)] -> set correct home permissions | |
2021/03/14 00:35:24 Result: exit status 1 | |
2021/03/14 00:35:24 Output: | |
stat: cannot stat ‘/opt/debug5_home’: No such file or directory | |
2021/03/14 00:35:24 ✗ [2.3 User Role (CentOS 7)] -> user owns its home directory | |
2021/03/14 00:35:24 Result: exit status 1 | |
2021/03/14 00:35:24 Output: | |
stat: cannot stat ‘/opt/debug5_home’: No such file or directory | |
2021/03/14 00:35:24 ✗ [2.3 User Role (CentOS 7)] -> use "user_name" from play vars | |
2021/03/14 00:35:24 Result: exit status 1 | |
2021/03/14 00:35:24 Output: | |
id: debug6: no such user | |
2021/03/14 00:35:25 ✗ [2.3 User Role (CentOS 7)] -> doesn't create home dir if required | |
2021/03/14 00:35:25 Result: exit status 1 | |
2021/03/14 00:35:25 Output: | |
2021/03/14 00:35:25 ✗ [2.3 User Role (CentOS 7)] -> use "user_shell" variable | |
2021/03/14 00:35:25 Result: exit status 1 | |
2021/03/14 00:35:25 Output: | |
2021/03/14 00:35:25 ✗ [2.3 User Role (CentOS 7)] -> setting custom sudo priviliges | |
2021/03/14 00:35:25 Result: exit status 1 | |
2021/03/14 00:35:25 Output: | |
sudo: unknown user: debug9 | |
sudo: unable to initialize policy plugin | |
2021/03/14 00:35:25 ✓ [2.3 User Role (CentOS 7)] => doesn't create sudo priviliges for all users (1), 261ms | |
2021/03/14 00:35:25 ✗ [2.3 User Role (CentOS 7)] -> setting custom sudo priviliges - checking validation parameter | |
2021/03/14 00:35:25 Result: exit status 1 | |
2021/03/14 00:35:25 Output: | |
2021/03/14 00:35:27 ----------------------------------------------------------------------------------- | |
2021/03/14 00:35:27 Tests Summary: | |
2021/03/14 00:35:27 1 (of 17) tests passed, 16 tests failed; rated as 4.00% | |
2021/03/14 00:35:27 | |
2021/03/14 00:35:27 Time Spent: 18.748s | |
2021/03/14 00:35:27 ----------------------------------------------------------------------------------- | |
name: yaroslav_kurapov, master/478cbc8 @ 2021-03-11 21:54:37 +0000 | |
2021/03/14 00:35:27 config: tests/webapp-server.yml | |
2021/03/14 00:35:27 verbosity: 2 | |
2021/03/14 00:35:27 ----------------------------------------------------------------------------------- | |
2021/03/14 00:35:27 Running '2.3 WebApp-Server Role (centos 7)', 1..17 tests | |
2021/03/14 00:35:27 ----------------------------------------------------------------------------------- | |
2021/03/14 00:35:36 ✗ [2.3 WebApp-Server Role (centos 7)] -> role linter | |
2021/03/14 00:35:36 Result: exit status 1 | |
2021/03/14 00:35:36 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
JSON: Expecting value: line 2 column 1 (char 1) | |
Syntax Error while loading YAML. | |
mapping values are not allowed in this context | |
The error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/webapp-server/tasks/main.yml': line 4, column 9, but may | |
be elsewhere in the file depending on the exact syntax problem. | |
The offending line appears to be: | |
======= | |
- name: Create Group for Webapp-server | |
^ here | |
2021/03/14 00:35:37 ✗ [2.3 WebApp-Server Role (centos 7)] -> playbook syntax check | |
2021/03/14 00:35:37 Result: exit status 4 | |
2021/03/14 00:35:37 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 2 column 1 (char 1) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/base/tasks/main.yml': line 3, column 7, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m- name: Install packages | |
[0;31m ^ here | |
2021/03/14 00:35:39 ✗ [2.3 WebApp-Server Role (centos 7)] -> apply role | |
2021/03/14 00:35:39 Result: exit status 4 | |
2021/03/14 00:35:39 Output: | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/webapp-server/defaults/main.yml': line 4, column 20, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m webapp_server_user: "{{ user_name }}" | |
[0;31m ^ here | |
[0;31mWe could be wrong, but this one looks like it might be an issue with | |
[0;31mmissing quotes. Always quote template expression brackets when they | |
[0;31mstart a value. For instance: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - {{ foo }} | |
[0;31m | |
[0;31mShould be written as: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - "{{ foo }}" | |
2021/03/14 00:35:40 ✗ [2.3 WebApp-Server Role (centos 7)] -> idempotence check (apply the role twice) | |
2021/03/14 00:35:40 Result: exit status 1 | |
2021/03/14 00:35:40 Output: | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/webapp-server/defaults/main.yml': line 4, column 20, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m webapp_server_user: "{{ user_name }}" | |
[0;31m ^ here | |
[0;31mWe could be wrong, but this one looks like it might be an issue with | |
[0;31mmissing quotes. Always quote template expression brackets when they | |
[0;31mstart a value. For instance: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - {{ foo }} | |
[0;31m | |
[0;31mShould be written as: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - "{{ foo }}" | |
(run, /tmp/students-2/yaroslav_kurapov/day2/2.3) => ansible-playbook testing-role-webapp-server.yml -i default, -v -e ansible_host=centos7 | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: ansible-playbook testing-role-webapp-server.yml -i default, -v -e ansible_host=centos7 | |
2021/03/14 00:35:40 ✓ [2.3 WebApp-Server Role (centos 7)] => role depends on 'user' role (1), 6ms | |
2021/03/14 00:35:40 ✗ [2.3 WebApp-Server Role (centos 7)] -> passing variables to 'user' role: 'webapp_server_user' | |
2021/03/14 00:35:40 Result: exit status 1 | |
2021/03/14 00:35:40 Output: | |
2021/03/14 00:35:40 ✗ [2.3 WebApp-Server Role (centos 7)] -> passing variables to 'user' role: 'webapp_server_group' | |
2021/03/14 00:35:40 Result: exit status 1 | |
2021/03/14 00:35:40 Output: | |
2021/03/14 00:35:40 ✗ [2.3 WebApp-Server Role (centos 7)] -> service responds 200 | |
2021/03/14 00:35:40 Result: exit status 7 | |
2021/03/14 00:35:40 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:35:40 ✗ [2.3 WebApp-Server Role (centos 7)] -> service is enabled | |
2021/03/14 00:35:40 Result: exit status 1 | |
2021/03/14 00:35:40 Output: | |
Failed to get unit file state for webapp-server.service: No such file or directory | |
2021/03/14 00:35:40 ✗ [2.3 WebApp-Server Role (centos 7)] -> service runs under proper user/group | |
2021/03/14 00:35:40 Result: exit status 1 | |
2021/03/14 00:35:40 Output: | |
2021/03/14 00:35:41 ✗ [2.3 WebApp-Server Role (centos 7)] -> application user has no password set | |
2021/03/14 00:35:41 Result: exit status 1 | |
2021/03/14 00:35:41 Output: | |
2021/03/14 00:35:42 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: updating server application | |
2021/03/14 00:35:42 Result: exit status 4 | |
2021/03/14 00:35:42 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/webapp-server/defaults/main.yml': line 4, column 20, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m webapp_server_user: "{{ user_name }}" | |
[0;31m ^ here | |
[0;31mWe could be wrong, but this one looks like it might be an issue with | |
[0;31mmissing quotes. Always quote template expression brackets when they | |
[0;31mstart a value. For instance: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - {{ foo }} | |
[0;31m | |
[0;31mShould be written as: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - "{{ foo }}" | |
2021/03/14 00:35:44 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: changing application port | |
2021/03/14 00:35:44 Result: exit status 4 | |
2021/03/14 00:35:44 Output: | |
centos7 | |
f682a49e6a75269a178160081a29a3886b33fa4a9e0917cd8d308ae92093821e | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/webapp-server/defaults/main.yml': line 4, column 20, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m webapp_server_user: "{{ user_name }}" | |
[0;31m ^ here | |
[0;31mWe could be wrong, but this one looks like it might be an issue with | |
[0;31mmissing quotes. Always quote template expression brackets when they | |
[0;31mstart a value. For instance: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - {{ foo }} | |
[0;31m | |
[0;31mShould be written as: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - "{{ foo }}" | |
2021/03/14 00:35:48 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: changing student name | |
2021/03/14 00:35:48 Result: exit status 4 | |
2021/03/14 00:35:48 Output: | |
centos7 | |
a57882b402879f156cb296afa9358107d107dc2e7bdfa284d71f2abad2fdcc61 | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/webapp-server/defaults/main.yml': line 4, column 20, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m webapp_server_user: "{{ user_name }}" | |
[0;31m ^ here | |
[0;31mWe could be wrong, but this one looks like it might be an issue with | |
[0;31mmissing quotes. Always quote template expression brackets when they | |
[0;31mstart a value. For instance: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - {{ foo }} | |
[0;31m | |
[0;31mShould be written as: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - "{{ foo }}" | |
2021/03/14 00:35:51 ✗ [2.3 WebApp-Server Role (centos 7)] -> stress-test: changing application home dir | |
2021/03/14 00:35:51 Result: exit status 4 | |
2021/03/14 00:35:51 Output: | |
centos7 | |
63099fb840110c3be4ca9955f286990ddc4f1f5cdd92068d269ca537012fec19 | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/webapp-server/defaults/main.yml': line 4, column 20, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m webapp_server_user: "{{ user_name }}" | |
[0;31m ^ here | |
[0;31mWe could be wrong, but this one looks like it might be an issue with | |
[0;31mmissing quotes. Always quote template expression brackets when they | |
[0;31mstart a value. For instance: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - {{ foo }} | |
[0;31m | |
[0;31mShould be written as: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - "{{ foo }}" | |
2021/03/14 00:35:54 ✗ [2.3 WebApp-Server Role (centos 7)] -> rollout (Not ROOT) | |
2021/03/14 00:35:54 Result: exit status 4 | |
2021/03/14 00:35:54 Output: | |
centos7 | |
7653bd934536c32ff6103ec3a583b4ddc1d72461e0dfb4393015c5fe96bf727b | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/webapp-server/defaults/main.yml': line 4, column 20, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m webapp_server_user: "{{ user_name }}" | |
[0;31m ^ here | |
[0;31mWe could be wrong, but this one looks like it might be an issue with | |
[0;31mmissing quotes. Always quote template expression brackets when they | |
[0;31mstart a value. For instance: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - {{ foo }} | |
[0;31m | |
[0;31mShould be written as: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - "{{ foo }}" | |
2021/03/14 00:35:55 ✗ [2.3 WebApp-Server Role (centos 7)] -> idempotancy check (Not ROOT) | |
2021/03/14 00:35:55 Result: exit status 1 | |
2021/03/14 00:35:55 Output: | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/webapp-server/defaults/main.yml': line 4, column 20, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31m webapp_server_user: "{{ user_name }}" | |
[0;31m ^ here | |
[0;31mWe could be wrong, but this one looks like it might be an issue with | |
[0;31mmissing quotes. Always quote template expression brackets when they | |
[0;31mstart a value. For instance: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - {{ foo }} | |
[0;31m | |
[0;31mShould be written as: | |
[0;31m | |
[0;31m with_items: | |
[0;31m - "{{ foo }}" | |
(run, /tmp/students-2/yaroslav_kurapov/day2/2.3) => ansible-playbook testing-role-webapp-server.yml -i default, -e ansible_host=centos7 -v -u devops | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: | |
2021/03/14 00:35:56 ----------------------------------------------------------------------------------- | |
2021/03/14 00:35:56 Tests Summary: | |
2021/03/14 00:35:56 1 (of 17) tests passed, 16 tests failed; rated as 3.03% | |
2021/03/14 00:35:56 | |
2021/03/14 00:35:56 Time Spent: 28.545s | |
2021/03/14 00:35:56 ----------------------------------------------------------------------------------- | |
name: yaroslav_kurapov, master/478cbc8 @ 2021-03-11 21:54:37 +0000 | |
2021/03/14 00:35:56 config: tests/mysqldb.yml | |
2021/03/14 00:35:56 verbosity: 2 | |
2021/03/14 00:35:56 ----------------------------------------------------------------------------------- | |
2021/03/14 00:35:56 Running '2.3 MysqlDB Role (CentOS 7)', 1..17 tests | |
2021/03/14 00:35:56 ----------------------------------------------------------------------------------- | |
2021/03/14 00:36:00 ✗ [2.3 MysqlDB Role (CentOS 7)] -> 'mysql_db' role linter | |
2021/03/14 00:36:00 Result: exit status 1 | |
2021/03/14 00:36:00 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
JSON: Expecting value: line 1 column 1 (char 0) | |
Syntax Error while loading YAML. | |
did not find expected <document start> | |
The error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_user/tasks/main.yml': line 10, column 1, but may | |
be elsewhere in the file depending on the exact syntax problem. | |
The offending line appears to be: | |
- name: Create database user with password and all database privileges and 'WITH GRANT OPTION' | |
^ here | |
2021/03/14 00:36:04 ✗ [2.3 MysqlDB Role (CentOS 7)] -> 'mysql_db_user' role linter | |
2021/03/14 00:36:04 Result: exit status 1 | |
2021/03/14 00:36:04 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
JSON: Expecting value: line 1 column 1 (char 0) | |
Syntax Error while loading YAML. | |
did not find expected <document start> | |
The error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_user/tasks/main.yml': line 10, column 1, but may | |
be elsewhere in the file depending on the exact syntax problem. | |
The offending line appears to be: | |
- name: Create database user with password and all database privileges and 'WITH GRANT OPTION' | |
^ here | |
2021/03/14 00:36:05 ✗ [2.3 MysqlDB Role (CentOS 7)] -> playbook syntax check | |
2021/03/14 00:36:05 Result: exit status 4 | |
2021/03/14 00:36:05 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db/defaults/main.yml': line 4, column 22, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_root_password: gdq9;;Qa6BNZ22 | |
[0;31m ^ here | |
2021/03/14 00:36:08 ✗ [2.3 MysqlDB Role (CentOS 7)] -> running role-mysqldb.yml playbook | |
2021/03/14 00:36:08 Result: exit status 4 | |
2021/03/14 00:36:08 Output: | |
Error: No such container: db | |
b7e5bad8c701114c4346bed8a3bb96e42ad6ee4a965e8b33cba8a500f416c23b | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db/defaults/main.yml': line 4, column 22, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_root_password: gdq9;;Qa6BNZ22 | |
[0;31m ^ here | |
2021/03/14 00:36:12 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db' role | |
2021/03/14 00:36:12 Result: exit status 4 | |
2021/03/14 00:36:12 Output: | |
db | |
847e0af2c1474a26dba1e6058d22fd315596e8fa2085803155feca211efb00a4 | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db/defaults/main.yml': line 4, column 22, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_root_password: gdq9;;Qa6BNZ22 | |
[0;31m ^ here | |
2021/03/14 00:36:13 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db' role again | |
2021/03/14 00:36:13 Result: exit status 4 | |
2021/03/14 00:36:13 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db/defaults/main.yml': line 4, column 22, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_root_password: gdq9;;Qa6BNZ22 | |
[0;31m ^ here | |
2021/03/14 00:36:15 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db_user' role | |
2021/03/14 00:36:15 Result: exit status 4 | |
2021/03/14 00:36:15 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_user/defaults/main.yml': line 4, column 13, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_user: yaroslav_db | |
[0;31m ^ here | |
2021/03/14 00:36:17 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db_user' role again | |
2021/03/14 00:36:17 Result: exit status 4 | |
2021/03/14 00:36:17 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_user/defaults/main.yml': line 4, column 13, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_user: yaroslav_db | |
[0;31m ^ here | |
2021/03/14 00:36:17 ✗ [2.3 MysqlDB Role (CentOS 7)] -> db service is enabled | |
2021/03/14 00:36:17 Result: exit status 1 | |
2021/03/14 00:36:17 Output: | |
Failed to get unit file state for mysqld.service: No such file or directory | |
2021/03/14 00:36:17 ✗ [2.3 MysqlDB Role (CentOS 7)] -> db service is active | |
2021/03/14 00:36:17 Result: exit status 3 | |
2021/03/14 00:36:17 Output: | |
unknown | |
2021/03/14 00:36:17 ✗ [2.3 MysqlDB Role (CentOS 7)] -> db service is running on 3306 | |
2021/03/14 00:36:17 Result: exit status 3 | |
2021/03/14 00:36:17 Output: | |
unknown | |
2021/03/14 00:36:18 ✗ [2.3 MysqlDB Role (CentOS 7)] -> db root password set | |
2021/03/14 00:36:18 Result: exit status 1 | |
2021/03/14 00:36:18 Output: | |
2021/03/14 00:36:18 ✗ [2.3 MysqlDB Role (CentOS 7)] -> custom db user (non-root) created | |
2021/03/14 00:36:18 Result: exit status 1 | |
2021/03/14 00:36:18 Output: | |
2021/03/14 00:36:21 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db' role (Not ROOT) | |
2021/03/14 00:36:21 Result: exit status 4 | |
2021/03/14 00:36:21 Output: | |
db | |
85044fcc8a9745d3f23087551cbb4846110db8858ddff42a7db953045e06aa13 | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db/defaults/main.yml': line 4, column 22, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_root_password: gdq9;;Qa6BNZ22 | |
[0;31m ^ here | |
2021/03/14 00:36:23 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db' role (Not ROOT) again | |
2021/03/14 00:36:23 Result: exit status 4 | |
2021/03/14 00:36:23 Output: | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db/defaults/main.yml': line 4, column 22, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_root_password: gdq9;;Qa6BNZ22 | |
[0;31m ^ here | |
2021/03/14 00:36:24 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db_user' role (Not ROOT) | |
2021/03/14 00:36:24 Result: exit status 4 | |
2021/03/14 00:36:24 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_user/defaults/main.yml': line 4, column 13, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_user: yaroslav_db | |
[0;31m ^ here | |
2021/03/14 00:36:26 ✗ [2.3 MysqlDB Role (CentOS 7)] -> apply 'mysql_db_user' role (Not ROOT) again | |
2021/03/14 00:36:26 Result: exit status 4 | |
2021/03/14 00:36:26 Output: | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m mapping values are not allowed in this context | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_user/defaults/main.yml': line 4, column 13, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_user: yaroslav_db | |
[0;31m ^ here | |
2021/03/14 00:36:26 ----------------------------------------------------------------------------------- | |
2021/03/14 00:36:26 Tests Summary: | |
2021/03/14 00:36:26 0 (of 17) tests passed, 17 tests failed; rated as 0.00% | |
2021/03/14 00:36:26 | |
2021/03/14 00:36:26 Time Spent: 30.204s | |
2021/03/14 00:36:26 ----------------------------------------------------------------------------------- | |
name: yaroslav_kurapov, master/478cbc8 @ 2021-03-11 21:54:37 +0000 | |
2021/03/14 00:36:26 config: tests/mysqldb-check.yml | |
2021/03/14 00:36:26 verbosity: 2 | |
2021/03/14 00:36:26 ----------------------------------------------------------------------------------- | |
2021/03/14 00:36:26 Running '2.3 MySQL DB Check', 1..16 tests | |
2021/03/14 00:36:26 ----------------------------------------------------------------------------------- | |
2021/03/14 00:36:31 ✗ [2.3 MySQL DB Check] -> 'mysql_db_check' role linter | |
2021/03/14 00:36:31 Result: exit status 1 | |
2021/03/14 00:36:31 Output: | |
Added ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles | |
We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
JSON: Expecting value: line 1 column 1 (char 0) | |
Syntax Error while loading YAML. | |
could not find expected ':' | |
The error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_check/tasks/main.yml': line 38, column 9, but may | |
be elsewhere in the file depending on the exact syntax problem. | |
The offending line appears to be: | |
<<<<<<< HEAD | |
mode: 'u+x' | |
^ here | |
2021/03/14 00:36:32 ✗ [2.3 MySQL DB Check] -> 'role-mysqldb-check.yml' playbook syntax check | |
2021/03/14 00:36:32 Result: exit status 4 | |
2021/03/14 00:36:32 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! Empty playbook, nothing to do | |
2021/03/14 00:36:34 ✗ [2.3 MySQL DB Check] -> apply 'role-mysqldb-check.yml' playbook | |
2021/03/14 00:36:34 Result: exit status 4 | |
2021/03/14 00:36:34 Output: | |
Error: No such container: db-check | |
0185b4f3330a3124ac648f5e855d18b5a51af2bde9a72ac03cfeaec2fe45deed | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! Empty playbook, nothing to do | |
2021/03/14 00:36:38 ✗ [2.3 MySQL DB Check] -> apply 'mysql_db_check' role (default settings) | |
2021/03/14 00:36:38 Result: exit status 4 | |
2021/03/14 00:36:38 Output: | |
db-check | |
ab6c8f6a3748777f7c35faf3f1a6e2632f4c45d74c8649b4c80b87823ad2d9dd | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_check/defaults/main.yml': line 9, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_check_port: 8080 | |
[0;31m^ here | |
2021/03/14 00:36:38 ✗ [2.3 MySQL DB Check] -> service responds 200 (after initial rollout) | |
2021/03/14 00:36:38 Result: exit status 7 | |
2021/03/14 00:36: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/14 00:36:40 ✗ [2.3 MySQL DB Check] -> idempotency check (apply the role twice) | |
2021/03/14 00:36:40 Result: exit status 1 | |
2021/03/14 00:36:40 Output: | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_check/defaults/main.yml': line 9, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_check_port: 8080 | |
[0;31m^ here | |
(run, /tmp/students-2/yaroslav_kurapov/day2/2.3) => ansible-playbook testing-role-mysqldb-check.yml -i db-check, -v | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: ansible-playbook testing-role-mysqldb-check.yml -i db-check, -v | |
2021/03/14 00:36:41 ✗ [2.3 MySQL DB Check] -> service responds 200 (after idempotancy check) | |
2021/03/14 00:36:41 Result: exit status 7 | |
2021/03/14 00:36:41 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:36:41 ✗ [2.3 MySQL DB Check] -> service is enabled | |
2021/03/14 00:36:41 Result: exit status 1 | |
2021/03/14 00:36:41 Output: | |
Failed to get unit file state for mysqldb-check.service: No such file or directory | |
2021/03/14 00:36:42 ✗ [2.3 MySQL DB Check] -> service runs under proper user/group | |
2021/03/14 00:36:42 Result: exit status 1 | |
2021/03/14 00:36:42 Output: | |
2021/03/14 00:36:42 ✗ [2.3 MySQL DB Check] -> application user has no password set | |
2021/03/14 00:36:42 Result: exit status 1 | |
2021/03/14 00:36:42 Output: | |
2021/03/14 00:36:44 ✗ [2.3 MySQL DB Check] -> trying another application port | |
2021/03/14 00:36:44 Result: exit status 4 | |
2021/03/14 00:36:44 Output: | |
db-check | |
721e80cfb266e0e771641e870aa4a76291332a75b11b2e4a75380c23dee62471 | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_check/defaults/main.yml': line 9, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_check_port: 8080 | |
[0;31m^ here | |
2021/03/14 00:36:47 ✗ [2.3 MySQL DB Check] -> trying another application home dir | |
2021/03/14 00:36:47 Result: exit status 4 | |
2021/03/14 00:36:47 Output: | |
db-check | |
5f518d50cd399bd824ef03b567a6a052e9743d4e0cae3729b07f391970084ceb | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_check/defaults/main.yml': line 9, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_check_port: 8080 | |
[0;31m^ here | |
2021/03/14 00:36:51 ✗ [2.3 MySQL DB Check] -> trying another application user | |
2021/03/14 00:36:51 Result: exit status 4 | |
2021/03/14 00:36:51 Output: | |
db-check | |
7c731d626ec51f1614ed9125d771ee6fb3c9123362f94c37fae5c6eaf534b41f | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_check/defaults/main.yml': line 9, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_check_port: 8080 | |
[0;31m^ here | |
2021/03/14 00:36:55 ✗ [2.3 MySQL DB Check] -> trying another application group | |
2021/03/14 00:36:55 Result: exit status 4 | |
2021/03/14 00:36:55 Output: | |
db-check | |
e7e8c8c0793f3cf3e5f7e36fa2ea9936b6a896cffe307d1a6505be7b87a9bcd2 | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_check/defaults/main.yml': line 9, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_check_port: 8080 | |
[0;31m^ here | |
2021/03/14 00:36:58 ✗ [2.3 MySQL DB Check] -> rollout (Not ROOT) | |
2021/03/14 00:36:58 Result: exit status 4 | |
2021/03/14 00:36:58 Output: | |
db-check | |
04084f1d4323ab0ac3dd94df3976c1f15c2a4d8d395543bba003dacabb849dfb | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_check/defaults/main.yml': line 9, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_check_port: 8080 | |
[0;31m^ here | |
2021/03/14 00:36:59 ✗ [2.3 MySQL DB Check] -> idempotency check (Not ROOT) | |
2021/03/14 00:36:59 Result: exit status 1 | |
2021/03/14 00:36:59 Output: | |
[0;31mERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: | |
[0;31mJSON: Expecting value: line 1 column 1 (char 0) | |
[0;31m | |
[0;31mSyntax Error while loading YAML. | |
[0;31m could not find expected ':' | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-2/yaroslav_kurapov/day2/2.3/roles/mysql_db_check/defaults/main.yml': line 9, column 1, but may | |
[0;31mbe elsewhere in the file depending on the exact syntax problem. | |
[0;31m | |
[0;31mThe offending line appears to be: | |
[0;31m | |
[0;31m<<<<<<< HEAD | |
[0;31mmysqldb_check_port: 8080 | |
[0;31m^ here | |
(run, /tmp/students-2/yaroslav_kurapov/day2/2.3) => ansible-playbook testing-role-mysqldb-check.yml -i db-check, -v -u devops | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: | |
2021/03/14 00:37:00 ----------------------------------------------------------------------------------- | |
2021/03/14 00:37:00 Tests Summary: | |
2021/03/14 00:37:00 0 (of 16) tests passed, 16 tests failed; rated as 0.00% | |
2021/03/14 00:37:00 | |
2021/03/14 00:37:00 Time Spent: 33.761s | |
2021/03/14 00:37:00 ----------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment