-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Student User
committed
Jan 12, 2023
1 parent
0dd1375
commit 5ffa1f9
Showing
20 changed files
with
3,761 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
serverc.lab.example.com,172.25.250.12 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCES4bZoDbhU0At5pVnccTsYWjKeB2nEjJ3dZCG1lRA3oQJvnPDzRTHzXBw/uBNx2vaBoFZpUzTddPNN8g4yKPY= | ||
serverd.lab.example.com,172.25.250.13 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCES4bZoDbhU0At5pVnccTsYWjKeB2nEjJ3dZCG1lRA3oQJvnPDzRTHzXBw/uBNx2vaBoFZpUzTddPNN8g4yKPY= |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: Using default filter | ||
hosts: dev | ||
gather_facts: true | ||
become: false | ||
tasks: | ||
- name: The variable my_var is defined with uppercase | ||
debug: | ||
msg: "The value of my_var is {{ my_var | default('ansible automation') | capitalize }}" | ||
... |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: Using default filter | ||
hosts: localhost | ||
gather_facts: false | ||
become: false | ||
tasks: | ||
- name: The variable my_var is defined | ||
debug: | ||
msg: "The value of the variable my_var is {{ my_var | default('blue') }}" | ||
... |
Empty file.
115 changes: 115 additions & 0 deletions
115
filters/password_hash-artifact-2023-01-12T02:50:32.304994+00:00.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"version": "1.0.0", | ||
"plays": [ | ||
{ | ||
"playbook": "/home/student/filters/password_hash.yml", | ||
"playbook_uuid": "5396644c-3ff6-4a30-99c9-9cb816c41a62", | ||
"play": "Using the password_hash filter", | ||
"play_uuid": "c253df5d-f06a-ebf0-a56e-000000000006", | ||
"play_pattern": "dev", | ||
"name": "Using the password_hash filter", | ||
"pattern": "dev", | ||
"uuid": "c253df5d-f06a-ebf0-a56e-000000000006", | ||
"__play_name": "Using the password_hash filter", | ||
"tasks": [ | ||
{ | ||
"playbook": "/home/student/filters/password_hash.yml", | ||
"playbook_uuid": "5396644c-3ff6-4a30-99c9-9cb816c41a62", | ||
"play": "Using the password_hash filter", | ||
"play_uuid": "c253df5d-f06a-ebf0-a56e-000000000006", | ||
"play_pattern": "dev", | ||
"task": "Ensure user exists", | ||
"task_uuid": "c253df5d-f06a-ebf0-a56e-000000000008", | ||
"task_action": "user", | ||
"task_args": "", | ||
"task_path": "/home/student/filters/password_hash.yml:7", | ||
"host": "serverd.lab.example.com", | ||
"uuid": "2f437ff0-5bc2-497d-a87f-5a3848dcdb2d", | ||
"__host": "serverd.lab.example.com", | ||
"__result": "OK", | ||
"__changed": true, | ||
"__duration": "1s", | ||
"__number": 0, | ||
"__task": "Ensure user exists", | ||
"__task_action": "user", | ||
"remote_addr": "serverd.lab.example.com", | ||
"res": { | ||
"name": "lenovo", | ||
"state": "present", | ||
"system": false, | ||
"create_home": true, | ||
"password": "NOT_LOGGING_PASSWORD", | ||
"changed": true, | ||
"uid": 1002, | ||
"group": 1002, | ||
"comment": "", | ||
"home": "/home/lenovo", | ||
"shell": "/bin/bash", | ||
"groups": "wheel", | ||
"invocation": { | ||
"module_args": { | ||
"name": "lenovo", | ||
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", | ||
"groups": [ | ||
"wheel" | ||
], | ||
"state": "present", | ||
"update_password": "on_create", | ||
"non_unique": false, | ||
"force": false, | ||
"remove": false, | ||
"create_home": true, | ||
"system": false, | ||
"move_home": false, | ||
"append": false, | ||
"ssh_key_bits": 0, | ||
"ssh_key_type": "rsa", | ||
"ssh_key_comment": "ansible-generated on serverd.lab.example.com", | ||
"uid": null, | ||
"group": null, | ||
"comment": null, | ||
"home": null, | ||
"shell": null, | ||
"login_class": null, | ||
"password_expire_max": null, | ||
"password_expire_min": null, | ||
"hidden": null, | ||
"seuser": null, | ||
"skeleton": null, | ||
"generate_ssh_key": null, | ||
"ssh_key_file": null, | ||
"ssh_key_passphrase": null, | ||
"expires": null, | ||
"password_lock": null, | ||
"local": null, | ||
"profile": null, | ||
"authorization": null, | ||
"role": null | ||
} | ||
}, | ||
"ansible_facts": { | ||
"discovered_interpreter_python": "/usr/libexec/platform-python" | ||
}, | ||
"_ansible_no_log": false | ||
}, | ||
"start": "2023-01-12T02:50:30.205174", | ||
"end": "2023-01-12T02:50:31.876302", | ||
"duration": 1.671128, | ||
"event_loop": null | ||
} | ||
] | ||
} | ||
], | ||
"stdout": [ | ||
"", | ||
"PLAY [Using the password_hash filter] ******************************************", | ||
"", | ||
"TASK [Ensure user exists] ******************************************************", | ||
"\u001b[0;33mchanged: [serverd.lab.example.com]\u001b[0m", | ||
"", | ||
"PLAY RECAP *********************************************************************", | ||
"\u001b[0;33mserverd.lab.example.com\u001b[0m : \u001b[0;32mok=1 \u001b[0m \u001b[0;33mchanged=1 \u001b[0m unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 " | ||
], | ||
"status": "successful", | ||
"status_color": 10 | ||
} |
108 changes: 108 additions & 0 deletions
108
filters/password_hash-artifact-2023-01-12T02:52:35.666756+00:00.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"version": "1.0.0", | ||
"plays": [ | ||
{ | ||
"playbook": "/home/student/filters/password_hash.yml", | ||
"playbook_uuid": "2848ea77-f31e-479b-9865-664fbeb984d3", | ||
"play": "Using the password_hash filter", | ||
"play_uuid": "66258ab8-6e7b-3b1c-ecde-000000000006", | ||
"play_pattern": "dev", | ||
"name": "Using the password_hash filter", | ||
"pattern": "dev", | ||
"uuid": "66258ab8-6e7b-3b1c-ecde-000000000006", | ||
"__play_name": "Using the password_hash filter", | ||
"tasks": [ | ||
{ | ||
"playbook": "/home/student/filters/password_hash.yml", | ||
"playbook_uuid": "2848ea77-f31e-479b-9865-664fbeb984d3", | ||
"play": "Using the password_hash filter", | ||
"play_uuid": "66258ab8-6e7b-3b1c-ecde-000000000006", | ||
"play_pattern": "dev", | ||
"task": "Ensure user exists", | ||
"task_uuid": "66258ab8-6e7b-3b1c-ecde-000000000008", | ||
"task_action": "user", | ||
"task_args": "", | ||
"task_path": "/home/student/filters/password_hash.yml:7", | ||
"host": "serverd.lab.example.com", | ||
"uuid": "b8418fca-1341-48ae-b26c-b8c0d7a36756", | ||
"__host": "serverd.lab.example.com", | ||
"__result": "OK", | ||
"__changed": true, | ||
"__duration": "1s", | ||
"__number": 0, | ||
"__task": "Ensure user exists", | ||
"__task_action": "user", | ||
"remote_addr": "serverd.lab.example.com", | ||
"res": { | ||
"name": "lenovo", | ||
"state": "absent", | ||
"force": false, | ||
"remove": false, | ||
"changed": true, | ||
"invocation": { | ||
"module_args": { | ||
"name": "lenovo", | ||
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", | ||
"groups": [ | ||
"wheel" | ||
], | ||
"state": "absent", | ||
"update_password": "on_create", | ||
"non_unique": false, | ||
"force": false, | ||
"remove": false, | ||
"create_home": true, | ||
"system": false, | ||
"move_home": false, | ||
"append": false, | ||
"ssh_key_bits": 0, | ||
"ssh_key_type": "rsa", | ||
"ssh_key_comment": "ansible-generated on serverd.lab.example.com", | ||
"uid": null, | ||
"group": null, | ||
"comment": null, | ||
"home": null, | ||
"shell": null, | ||
"login_class": null, | ||
"password_expire_max": null, | ||
"password_expire_min": null, | ||
"hidden": null, | ||
"seuser": null, | ||
"skeleton": null, | ||
"generate_ssh_key": null, | ||
"ssh_key_file": null, | ||
"ssh_key_passphrase": null, | ||
"expires": null, | ||
"password_lock": null, | ||
"local": null, | ||
"profile": null, | ||
"authorization": null, | ||
"role": null | ||
} | ||
}, | ||
"ansible_facts": { | ||
"discovered_interpreter_python": "/usr/libexec/platform-python" | ||
}, | ||
"_ansible_no_log": false | ||
}, | ||
"start": "2023-01-12T02:52:33.548678", | ||
"end": "2023-01-12T02:52:35.221016", | ||
"duration": 1.672338, | ||
"event_loop": null | ||
} | ||
] | ||
} | ||
], | ||
"stdout": [ | ||
"", | ||
"PLAY [Using the password_hash filter] ******************************************", | ||
"", | ||
"TASK [Ensure user exists] ******************************************************", | ||
"\u001b[0;33mchanged: [serverd.lab.example.com]\u001b[0m", | ||
"", | ||
"PLAY RECAP *********************************************************************", | ||
"\u001b[0;33mserverd.lab.example.com\u001b[0m : \u001b[0;32mok=1 \u001b[0m \u001b[0;33mchanged=1 \u001b[0m unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 " | ||
], | ||
"status": "successful", | ||
"status_color": 10 | ||
} |
Oops, something went wrong.