-
-
Save sbeliakou/3df6c95afb552dceed645f14f677a5dc 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 'aliaksei_hladki1'... | |
name: aliaksei_hladki1, master/5c9f02d @ 2021-03-04 08:18:46 +0000 | |
2021/03/13 22:32:32 config: tests/tomcat.yml | |
2021/03/13 22:32:32 verbosity: 2 | |
2021/03/13 22:32:32 ----------------------------------------------------------------------------------- | |
2021/03/13 22:32:32 Running '1.1 Tomcat', 1..16 tests | |
2021/03/13 22:32:32 ----------------------------------------------------------------------------------- | |
2021/03/13 22:32:40 ✗ [1.1 Tomcat] -> playbook lint (ansible-lint) | |
2021/03/13 22:32:40 Result: exit status 1 | |
2021/03/13 22:32:40 Output: | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => test -f tomcat.yml | |
rc: 0 | |
output: '' | |
WARNING Overriding detected file kind 'yaml' with 'playbook' for given positional argument: tomcat.yml | |
WARNING Listing 1 violation(s) that are fatal | |
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 | |
- syntax-check # Ansible syntax check failed | |
Finished with [1;34m1 failure(s), [1;34m0 warning(s) on [1;34m1 files. | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => ansible-lint tomcat.yml -x 201,204,208 | |
rc: 2 | |
output: | | |
syntax-check: 'add vars here' is not a valid attribute for a Play | |
tomcat.yml:1:3 [WARNING]: No inventory was parsed, only implicit localhost is available | |
[WARNING]: provided hosts list is empty, only localhost is available. Note that | |
the implicit localhost does not match 'all' | |
ERROR! 'add vars here' is not a valid attribute for a Play | |
The error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.1/tomcat.yml': line 1, column 3, but may | |
be elsewhere in the file depending on the exact syntax problem. | |
The offending line appears to be: | |
- name: Installing Tomcat | |
^ here | |
CMD Failed: ansible-lint tomcat.yml -x 201,204,208 | |
2021/03/13 22:32:42 ✗ [1.1 Tomcat] -> playbook syntax check (--syntax-check) | |
2021/03/13 22:32:42 Result: exit status 1 | |
2021/03/13 22:32:42 Output: | |
[0;31mERROR! 'add vars here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.1/tomcat.yml': line 1, column 3, 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 | |
[0;31m- name: Installing Tomcat | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => ansible-playbook tomcat.yml -i app-server, --syntax-check | |
rc: 4 | |
output: '' | |
CMD Failed: ansible-playbook tomcat.yml -i app-server, --syntax-check | |
2021/03/13 22:32:43 ✗ [1.1 Tomcat] -> apply playbook | |
2021/03/13 22:32:43 Result: exit status 4 | |
2021/03/13 22:32:43 Output: | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! 'add vars here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.1/tomcat.yml': line 1, column 3, 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 | |
[0;31m- name: Installing Tomcat | |
[0;31m ^ here | |
2021/03/13 22:32:43 ✗ [1.1 Tomcat] -> service process should run after rollout | |
2021/03/13 22:32:43 Result: exit status 1 | |
2021/03/13 22:32:43 Output: | |
2021/03/13 22:32:46 ✗ [1.1 Tomcat] -> responds 200 | |
2021/03/13 22:32:46 Result: exit status 1 | |
2021/03/13 22:32:46 Output: | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => docker exec app-server curl -s -f localhost:8080 | |
rc: 7 | |
output: '' | |
CMD Failed: docker exec app-server curl -s -f localhost:8080 | |
2021/03/13 22:32:47 ✗ [1.1 Tomcat] -> idempotency check | |
2021/03/13 22:32:47 Result: exit status 1 | |
2021/03/13 22:32:47 Output: | |
[0;31mERROR! 'add vars here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.1/tomcat.yml': line 1, column 3, 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 | |
[0;31m- name: Installing Tomcat | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => ansible-playbook tomcat.yml -i app-server, -e ansible_host=app-server -v | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: ansible-playbook tomcat.yml -i app-server, -e ansible_host=app-server -v | |
2021/03/13 22:32:47 ✗ [1.1 Tomcat] -> should run after 2nd apply | |
2021/03/13 22:32:47 Result: exit status 1 | |
2021/03/13 22:32:47 Output: | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => docker exec app-server curl -s -f --connect-timeout 1 localhost:8080 | |
rc: 7 | |
output: '' | |
CMD Failed: docker exec app-server curl -s -f --connect-timeout 1 localhost:8080 | |
2021/03/13 22:32:47 ✗ [1.1 Tomcat] -> shouldn't restart | |
2021/03/13 22:32:47 Result: exit status 1 | |
2021/03/13 22:32:47 Output: | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => docker exec app-server curl -s -f --connect-timeout 1 localhost:8080 | |
rc: 7 | |
output: '' | |
CMD Failed: docker exec app-server curl -s -f --connect-timeout 1 localhost:8080 | |
2021/03/13 22:32:48 ✗ [1.1 Tomcat] -> service is enabled | |
2021/03/13 22:32:48 Result: exit status 1 | |
2021/03/13 22:32:48 Output: | |
Failed to get unit file state for tomcat.service: No such file or directory | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => docker exec app-server systemctl is-enabled tomcat | |
rc: 1 | |
output: '' | |
CMD Failed: docker exec app-server systemctl is-enabled tomcat | |
2021/03/13 22:32:48 ✗ [1.1 Tomcat] -> 'tomcat_user' variable set as required | |
2021/03/13 22:32:48 Result: exit status 1 | |
2021/03/13 22:32:48 Output: | |
jq: error (at <stdin>:8): Cannot iterate over null (null) | |
2021/03/13 22:32:48 ✗ [1.1 Tomcat] -> 'tomcat_group' variable set as required | |
2021/03/13 22:32:48 Result: exit status 1 | |
2021/03/13 22:32:48 Output: | |
jq: error (at <stdin>:8): Cannot iterate over null (null) | |
2021/03/13 22:32:50 ✗ [1.1 Tomcat] -> service is running under non-priviliged user as per tomcat_user/tomcat_group | |
2021/03/13 22:32:50 Result: exit status 4 | |
2021/03/13 22:32:50 Output: | |
app-server | |
a14f64f13646f23cfd227a3a20947463affdaa9d27de6ac4ed6095a7747d4d4f | |
[0;34mNo config file found; using defaults | |
[0;31mERROR! 'add vars here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.1/tomcat.yml': line 1, column 3, 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 | |
[0;31m- name: Installing Tomcat | |
[0;31m ^ here | |
2021/03/13 22:32:50 ✗ [1.1 Tomcat] -> 'tomcat_url' variable set as required | |
2021/03/13 22:32:50 Result: exit status 1 | |
2021/03/13 22:32:50 Output: | |
jq: error (at <stdin>:8): Cannot iterate over null (null) | |
2021/03/13 22:32:51 ✗ [1.1 Tomcat] -> 'tomcat_home' variable set as required | |
2021/03/13 22:32:51 Result: exit status 1 | |
2021/03/13 22:32:51 Output: | |
jq: error (at <stdin>:8): Cannot iterate over null (null) | |
2021/03/13 22:32:54 ✗ [1.1 Tomcat] -> can install into different home | |
2021/03/13 22:32:54 Result: exit status 1 | |
2021/03/13 22:32:54 Output: | |
app-server | |
e95372696f2842005a987795d1475f397d8b5b859b182320854672e8be43f075 | |
[0;31mERROR! 'add vars here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.1/tomcat.yml': line 1, column 3, 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 | |
[0;31m- name: Installing Tomcat | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => ansible-playbook tomcat.yml -i app-server, -v -e tomcat_home=/opt/tomcat-test | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: | |
2021/03/13 22:32:56 ✗ [1.1 Tomcat] -> can apply under non-root user | |
2021/03/13 22:32:56 Result: exit status 1 | |
2021/03/13 22:32:56 Output: | |
app-server | |
f2d33a4452ac0ed4d76e7532fac8cbaaecbe840b9b4a57ba0bb59c48b118fa3b | |
[0;31mERROR! 'add vars here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.1/tomcat.yml': line 1, column 3, 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 | |
[0;31m- name: Installing Tomcat | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.1) => ansible-playbook tomcat.yml -i app-server, -v -u devops | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: | |
2021/03/13 22:32:57 ----------------------------------------------------------------------------------- | |
2021/03/13 22:32:57 Tests Summary: | |
2021/03/13 22:32:57 0 (of 16) tests passed, 16 tests failed; rated as 0.00% | |
2021/03/13 22:32:57 | |
2021/03/13 22:32:57 Time Spent: 24.841s | |
2021/03/13 22:32:57 ----------------------------------------------------------------------------------- | |
name: aliaksei_hladki1, master/5c9f02d @ 2021-03-04 08:18:46 +0000 | |
2021/03/13 22:32:57 config: tests/webapp.yml | |
2021/03/13 22:32:57 verbosity: 2 | |
2021/03/13 22:32:57 ----------------------------------------------------------------------------------- | |
2021/03/13 22:32:57 Running '1.2 WebApp', 1..21 tests | |
2021/03/13 22:32:57 ----------------------------------------------------------------------------------- | |
2021/03/13 22:33:06 ✗ [1.2 WebApp] -> playbook lint (ansible-lint) | |
2021/03/13 22:33:06 Result: exit status 1 | |
2021/03/13 22:33:06 Output: | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => test -f webapp-server.yml | |
rc: 0 | |
output: '' | |
WARNING Overriding detected file kind 'yaml' with 'playbook' for given positional argument: webapp-server.yml | |
WARNING Listing 1 violation(s) that are fatal | |
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 | |
- syntax-check # Ansible syntax check failed | |
Finished with [1;34m1 failure(s), [1;34m0 warning(s) on [1;34m1 files. | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => ansible-lint webapp-server.yml -x 201,204,208,206,risky-file-permissions | |
rc: 2 | |
output: | | |
syntax-check: 'add your tasks here' is not a valid attribute for a Play | |
webapp-server.yml:1:3 [WARNING]: No inventory was parsed, only implicit localhost is available | |
[WARNING]: provided hosts list is empty, only localhost is available. Note that | |
the implicit localhost does not match 'all' | |
ERROR! 'add your tasks here' is not a valid attribute for a Play | |
The error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.2/webapp-server.yml': line 1, column 3, but may | |
be elsewhere in the file depending on the exact syntax problem. | |
The offending line appears to be: | |
- name: Installing webapp-server | |
^ here | |
CMD Failed: ansible-lint webapp-server.yml -x 201,204,208,206,risky-file-permissions | |
2021/03/13 22:33:07 ✗ [1.2 WebApp] -> playbook syntax check (--syntax-check) | |
2021/03/13 22:33:07 Result: exit status 1 | |
2021/03/13 22:33:07 Output: | |
[1;35m[WARNING]: No inventory was parsed, only implicit localhost is available | |
[1;35m[WARNING]: provided hosts list is empty, only localhost is available. Note that | |
[1;35mthe implicit localhost does not match 'all' | |
[0;31mERROR! 'add your tasks here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.2/webapp-server.yml': line 1, column 3, 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 | |
[0;31m- name: Installing webapp-server | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => ansible-playbook webapp-server.yml --syntax-check | |
rc: 4 | |
output: '' | |
CMD Failed: ansible-playbook webapp-server.yml --syntax-check | |
2021/03/13 22:33:09 ✗ [1.2 WebApp] -> apply plybook | |
2021/03/13 22:33:09 Result: exit status 1 | |
2021/03/13 22:33:09 Output: | |
[0;31mERROR! 'add your tasks here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.2/webapp-server.yml': line 1, column 3, 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 | |
[0;31m- name: Installing webapp-server | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -v | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: | |
2021/03/13 22:33:09 ✗ [1.2 WebApp] -> 'webapp-server' is running | |
2021/03/13 22:33:09 Result: exit status 1 | |
2021/03/13 22:33:09 Output: | |
Unit webapp-server.service could not be found. | |
2021/03/13 22:33:09 ✗ [1.2 WebApp] -> service responds 200 | |
2021/03/13 22:33:09 Result: exit status 1 | |
2021/03/13 22:33:09 Output: | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => docker exec web-server curl -sL -w %{http_code} localhost:8080 -o/dev/null | |
rc: 7 | |
output: '000' | |
Stdout Assertion Failed (Full mistmatch) | |
2021/03/13 22:33:11 ✗ [1.2 WebApp] -> playbook idempotency check | |
2021/03/13 22:33:11 Result: exit status 1 | |
2021/03/13 22:33:11 Output: | |
[0;31mERROR! 'add your tasks here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.2/webapp-server.yml': line 1, column 3, 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 | |
[0;31m- name: Installing webapp-server | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -v | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: | |
2021/03/13 22:33:11 ✗ [1.2 WebApp] -> service shouldn't restart | |
2021/03/13 22:33:11 Result: exit status 1 | |
2021/03/13 22:33:11 Output: | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => docker exec web-server curl -s -f localhost:8080 | |
rc: 7 | |
output: '' | |
CMD Failed: docker exec web-server curl -s -f localhost:8080 | |
2021/03/13 22:33:11 ✗ [1.2 WebApp] -> service should run after 2nd apply | |
2021/03/13 22:33:11 Result: exit status 1 | |
2021/03/13 22:33:11 Output: | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => docker exec web-server curl -s -f --connect-timeout 1 localhost:8080 | |
rc: 7 | |
output: '' | |
CMD Failed: docker exec web-server curl -s -f --connect-timeout 1 localhost:8080 | |
2021/03/13 22:33:11 ✗ [1.2 WebApp] -> service is enabled | |
2021/03/13 22:33:11 Result: exit status 1 | |
2021/03/13 22:33:11 Output: | |
Failed to get unit file state for webapp-server.service: No such file or directory | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => docker exec web-server systemctl is-enabled webapp-server | |
rc: 1 | |
output: '' | |
Stdout Assertion Failed (Full mistmatch) | |
2021/03/13 22:33:13 ✗ [1.2 WebApp] -> can use 'student_first_name/student_last_name' variables | |
2021/03/13 22:33:13 Result: exit status 1 | |
2021/03/13 22:33:13 Output: | |
[0;31mERROR! 'add your tasks here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.2/webapp-server.yml': line 1, column 3, 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 | |
[0;31m- name: Installing webapp-server | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -e student_first_name=Susan -e student_last_name=Sheppard | |
rc: 4 | |
output: '' | |
CMD Failed: | |
2021/03/13 22:33:13 ✗ [1.2 WebApp] -> can set custom port | |
2021/03/13 22:33:13 Result: exit status 1 | |
2021/03/13 22:33:13 Output: | |
grep: templates/webapp-server.conf.j2: No such file or directory | |
grep: webapp-server.conf.j2: No such file or directory | |
Assertion Failed: '' == '' | |
2021/03/13 22:33:13 ✗ [1.2 WebApp] -> use 'checksum' when downloading WebApp binary (get_url) | |
2021/03/13 22:33:13 Result: exit status 1 | |
2021/03/13 22:33:13 Output: | |
jq: error (at <stdin>:7): Cannot iterate over null (null) | |
2021/03/13 22:33:13 ✗ [1.2 WebApp] -> service is running under 'webapp-server:webapp-server' | |
2021/03/13 22:33:13 Result: exit status 1 | |
2021/03/13 22:33:13 Output: | |
Unit webapp-server.service could not be found. | |
2021/03/13 22:33:13 ✗ [1.2 WebApp] -> app/service user has no password set | |
2021/03/13 22:33:13 Result: exit status 1 | |
2021/03/13 22:33:13 Output: | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => docker exec web-server cat /etc/shadow | |
rc: 0 | |
output: | | |
root:locked::0:99999:7::: | |
bin:*:17834:0:99999:7::: | |
daemon:*:17834:0:99999:7::: | |
adm:*:17834:0:99999:7::: | |
lp:*:17834:0:99999:7::: | |
sync:*:17834:0:99999:7::: | |
shutdown:*:17834:0:99999:7::: | |
halt:*:17834:0:99999:7::: | |
mail:*:17834:0:99999:7::: | |
operator:*:17834:0:99999:7::: | |
games:*:17834:0:99999:7::: | |
ftp:*:17834:0:99999:7::: | |
nobody:*:17834:0:99999:7::: | |
systemd-network:!!:17960:::::: | |
dbus:!!:17960:::::: | |
sshd:!!:18015:::::: | |
devops:$6$MwvRio2P$HnbdgpQFWeHvNwS70Oc2nJHwAs6wgTlVjjzMak9Tg4F0zgmxDMUwRKV1TaIukyfxQSzM/vWHjvBuV4H2n1gk/0:18019:0:99999:7::: | |
Stdout Assertion Failed (Regexp, 'webapp-server:!!:') | |
2021/03/13 22:33:13 ✗ [1.2 WebApp] -> playbook has no hardcoded 'webapp_user' | |
2021/03/13 22:33:13 Result: exit status 1 | |
2021/03/13 22:33:13 Output: | |
checking webapp-server.service.j2 | |
grep: templates/webapp-server.service.j2: No such file or directory | |
grep: webapp-server.service.j2: No such file or directory | |
2021/03/13 22:33:13 ✗ [1.2 WebApp] -> playbook has no hardcoded 'webapp_group' | |
2021/03/13 22:33:13 Result: exit status 1 | |
2021/03/13 22:33:13 Output: | |
checking webapp-server.service.j2 | |
grep: templates/webapp-server.service.j2: No such file or directory | |
grep: webapp-server.service.j2: No such file or directory | |
2021/03/13 22:33:16 ✗ [1.2 WebApp] -> can use 'webapp_user/webapp_group' variables | |
2021/03/13 22:33:16 Result: exit status 1 | |
2021/03/13 22:33:16 Output: | |
web-server | |
40eab3fee5a59b5f30b4f8779b55463a1cc8a2b8b4e8312e22cab8268b2cbae4 | |
[0;31mERROR! 'add your tasks here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.2/webapp-server.yml': line 1, column 3, 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 | |
[0;31m- name: Installing webapp-server | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -e webapp_user=webapp1user -e webapp_group=webapp1group | |
rc: 4 | |
output: '' | |
CMD Failed: ansible-playbook webapp-server.yml -i web-server, -e webapp_user=webapp1user -e webapp_group=webapp1group | |
2021/03/13 22:33:19 ✗ [1.2 WebApp] -> can install into different home dir | |
2021/03/13 22:33:19 Result: exit status 1 | |
2021/03/13 22:33:19 Output: | |
web-server | |
4cad0917db92fd8882db1dee1bed73c7190b12272167386caf0a7b3bd752376e | |
[0;31mERROR! 'add your tasks here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.2/webapp-server.yml': line 1, column 3, 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 | |
[0;31m- name: Installing webapp-server | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -v -e webapp_home=/opt/webapp-test | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: | |
2021/03/13 22:33:19 ✗ [1.2 WebApp] -> can use different source url | |
2021/03/13 22:33:19 Result: exit status 1 | |
2021/03/13 22:33:19 Output: | |
2021/03/13 22:33:22 ✗ [1.2 WebApp] -> can apply under non-root user | |
2021/03/13 22:33:22 Result: exit status 1 | |
2021/03/13 22:33:22 Output: | |
web-server | |
dcd06b0bb8904a4e360d08ac2802553fcd2d1ed6b1430e4301885a4ba32c72ad | |
[0;31mERROR! 'add your tasks here' is not a valid attribute for a Play | |
[0;31m | |
[0;31mThe error appears to be in '/tmp/students-1/aliaksei_hladki1/day1/1.2/webapp-server.yml': line 1, column 3, 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 | |
[0;31m- name: Installing webapp-server | |
[0;31m ^ here | |
(run, /tmp/students-1/aliaksei_hladki1/day1/1.2) => ansible-playbook webapp-server.yml -i web-server, -v -u devops | |
rc: 4 | |
output: '[0;34mNo config file found; using defaults' | |
CMD Failed: | |
2021/03/13 22:33:22 ✗ [1.2 WebApp] -> playbook has 'handlers' | |
2021/03/13 22:33:22 Result: exit status 1 | |
2021/03/13 22:33:22 Output: | |
2021/03/13 22:33:23 ----------------------------------------------------------------------------------- | |
2021/03/13 22:33:23 Tests Summary: | |
2021/03/13 22:33:23 0 (of 21) tests passed, 21 tests failed; rated as 0.00% | |
2021/03/13 22:33:23 | |
2021/03/13 22:33:23 Time Spent: 25.534s | |
2021/03/13 22:33:23 ----------------------------------------------------------------------------------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment