forked from ansible/workshops
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
50 changed files
with
582 additions
and
246 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
student_user: student | ||
admin_password: ansible | ||
code_server: true | ||
workshop_dns_zone: "rhdemo.io" | ||
|
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
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
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
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
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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
community.aws.route53: | ||
state: "{{ s3_state }}" | ||
zone: "{{ workshop_dns_zone }}" | ||
record: "{{ username }}-code.{{ ec2_name_prefix|lower }}.{{ workshop_dns_zone }}" | ||
record: "{{ student }}-code.{{ ec2_name_prefix|lower }}.{{ workshop_dns_zone }}" | ||
type: A | ||
overwrite: true | ||
value: "{{ ansible_host }}" | ||
|
@@ -47,7 +47,7 @@ | |
template: | ||
src: code-server.service.j2 | ||
dest: /etc/systemd/system/code-server.service | ||
owner: "{{username}}" | ||
owner: "{{ username }}" | ||
group: wheel | ||
mode: '0744' | ||
|
||
|
@@ -107,19 +107,13 @@ | |
|
||
# if we do not have a cert we will try to work anyway | ||
- name: issue cert | ||
shell: certbot certonly --no-bootstrap --standalone -d {{ username }}-code.{{ ec2_name_prefix|lower }}.{{ workshop_dns_zone }} --email [email protected] --noninteractive --agree-tos | ||
shell: certbot certonly --no-bootstrap --standalone -d {{ student }}-code.{{ ec2_name_prefix|lower }}.{{ workshop_dns_zone }} --email [email protected] --noninteractive --agree-tos | ||
register: issue_cert | ||
until: issue_cert is not failed | ||
retries: 5 | ||
ignore_errors: true | ||
when: workshop_type is defined | ||
|
||
# - name: update nginx configuration to support code server | ||
# blockinfile: | ||
# block: "{{ lookup('template', 'nginx.conf') }}" | ||
# dest: /etc/nginx/nginx.conf | ||
# insertafter: "http {" | ||
# | ||
- name: update nginx configuration to support code server | ||
ansible.builtin.template: | ||
src: full_nginx.conf | ||
|
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
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
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
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
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,21 @@ | ||
#### This workbench is for {{ student }} #### | ||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
@@@@@@@@@@@ ############ m@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
@@@@@@@@@@ ################ m@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
@@@@@@@@@ ################# m@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@ @@@@ @@@@@ @@@@@@@@@@@@@@@@@@@ | ||
@@@@@@@@@ ################## @@@@@@@@@@@ @@@ #@@@@@@@@@@@@@@@@@ @@@@ @@@@@ @@@@@@@@@@@ @@@@@ | ||
@@@ ##### @@############### #m@@@@@@ @@@@ @ @@@ @@@@ @@@@@ @ @@ @@ | ||
@@ ####### ########### m@@@@@@ @ @@@ @ @@@@ @@@@ @@@@@@ @@ @@@@@ | ||
@@@ ######### ######## #m@@ @@ @@ ....@ @@@@ @@@@ @@@@@ @ @@ @@ @@@@@ | ||
@@@@@ ###########@ ####### #m@ @@@ @@ @@@ @@@@ @@@@@ @ @@@ @@@ | ||
@@@@@@@ ######################### m@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
@@@@@@@@@@@ #################### m@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
@@@@@@@@@@@@@@@@ ############# m@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
#### This workbench is for {{ student }} #### | ||
- Public FQDN: {{ student }}.{{ ec2_name_prefix|default("ansible") }}.{{ workshop_dns_zone|default("demo") }} | ||
— Local FQDN: {{ ansible_fqdn }} | ||
— Distro: {{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_distribution_release }} | ||
— Virtual: {{ 'YES' if ansible_virtualization_role == 'guest' else 'NO' }} | ||
— CPUs: {{ ansible_processor_vcpus }} | ||
— RAM: {{ (ansible_memtotal_mb / 1000) | round(1) }}GB |
6 changes: 0 additions & 6 deletions
6
roles/control_node/files/ansible-stable-29-prerelease-nightly.repo
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.