-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
27 changed files
with
171 additions
and
170 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
|
||
- name: 'start_core_service' | ||
systemd: | ||
ansible.builtin.systemd: | ||
name: 'ga_core.service' | ||
state: started |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
|
||
- name: 'enable_mariadb' | ||
systemd: | ||
ansible.builtin.systemd: | ||
name: 'mariadb.service' | ||
enabled: yes | ||
state: started |
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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
--- | ||
|
||
- name: GA | Devices | Installing packages | ||
apt: | ||
ansible.builtin.apt: | ||
name: "{{ ga_device_packages }}" | ||
state: present | ||
|
||
- name: GA | Devices | Install python modules into venv | ||
pip: | ||
ansible.builtin.pip: | ||
name: "{{ ga_device_mods }}" | ||
virtualenv: "{{ ga_core_path_venv }}" | ||
virtualenv_python: "{{ ga_python_version }}" | ||
state: present | ||
|
||
- name: GA | Core | Copying device-code | ||
shell: "cp -r {{ setup_clone_dir }}/code/device {{ ga_core_path }} && | ||
ansible.builtin.shell: "cp -r {{ setup_clone_dir }}/code/device {{ ga_core_path }} && | ||
chown -R {{ ga_core_service_user }}:{{ ga_service_group }} {{ ga_core_path }}/device && | ||
chmod 775 -R {{ ga_core_path }}/device" | ||
|
||
- name: GA | Devices | Adding service user to groups | ||
user: | ||
ansible.builtin.user: | ||
name: "{{ ga_core_service_user }}" | ||
groups: "{{ ga_device_groups }}" | ||
append: yes | ||
|
||
- name: GA | Devices | Configuring raspi-config | ||
shell: "raspi-config {{ item }}" | ||
ansible.builtin.shell: "raspi-config {{ item }}" | ||
with_items: "{{ ga_device_raspiconfig }}" | ||
ignore_errors: true |
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,13 +1,13 @@ | ||
--- | ||
|
||
- name: GA | Cert LetsEncrypt | Cleanup | Disable temporary apache site | ||
file: | ||
ansible.builtin.file: | ||
state: absent | ||
dest: "/etc/apache2/sites-enabled/tmp_lets_encrypt.conf" | ||
register: tmp_site_config | ||
|
||
- name: GA | Cert LetsEncrypt | Cleanup | Reload apache | ||
systemd: | ||
ansible.builtin.systemd: | ||
name: 'apache2.service' | ||
state: reloaded | ||
when: tmp_site_config.changed |
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
--- | ||
|
||
- name: GA | Cert LetsEncrypt | Creating alternative name string (1/3) | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
_alias: "{{ ga_web_alias | join(' --domain ') }}" | ||
when: ga_web_alias | length > 0 | ||
|
||
- name: GA | Cert LetsEncrypt | Creating alternative name string (2/3) | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
certbot_alias: "{{ '--domain ' + _alias }}" | ||
when: ga_web_alias | length > 0 | ||
|
||
- name: GA | Cert LetsEncrypt | Creating alternative name string (3/3) | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
certbot_alias: '' | ||
when: ga_web_alias | length == 0 | ||
|
||
- name: GA | Cert LetsEncrypt | Debug => the following command will be issued | ||
debug: | ||
ansible.builtin.debug: | ||
msg: "certbot certonly --apache -{{ certbot_verbosity }} --non-interactive --agree-tos --email {{ ga_web_ssl_letsencrypt_mail }} --cert-name {{ ga_web_key }} | ||
--rsa-key-size {{ letsencrypt_key_size }} --no-redirect --domain {{ ga_web_dns }} {{ certbot_alias }}" | ||
|
||
- name: GA | Cert LetsEncrypt | Certbot | Starting certbot initialization (this might take some time) | ||
shell: "certbot certonly --apache -{{ certbot_verbosity }} --non-interactive --agree-tos --email {{ ga_web_ssl_letsencrypt_mail }} --cert-name {{ ga_web_key }} | ||
--rsa-key-size {{ letsencrypt_key_size }} --no-redirect --domain {{ ga_web_dns }} {{ certbot_alias }}" | ||
ansible.builtin.shell: "certbot certonly --apache -{{ certbot_verbosity }} --non-interactive --agree-tos --email {{ ga_web_ssl_letsencrypt_mail }} --cert-name {{ ga_web_key }} | ||
--rsa-key-size {{ letsencrypt_key_size }} --no-redirect --domain {{ ga_web_dns }} {{ certbot_alias }}" |
Oops, something went wrong.