File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Install Chromium — Debian
3
+ when : ansible_distribution == 'Debian'
3
4
ansible.builtin.apt :
4
5
pkg :
5
6
- chromium
6
7
update_cache : true
7
8
state : latest
8
- when : ansible_distribution == 'Debian'
9
9
10
10
- name : Install Chromium — Ubuntu
11
+ when : ansible_distribution == 'Ubuntu'
11
12
ansible.builtin.apt :
12
13
pkg :
13
14
- chromium-browser
14
15
update_cache : true
15
16
state : latest
16
- when : ansible_distribution == 'Ubuntu'
17
17
18
18
# See https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#recommended-enable-user-namespace-cloning
19
19
- name : Enable user namespace cloning to allow running Chromium in a sandbox
20
- ansible.builtin.command : sysctl -w kernel.unprivileged_userns_clone=1
21
20
when : ansible_facts['architecture'] != 'aarch64'
21
+ ansible.builtin.command : sysctl -w kernel.unprivileged_userns_clone=1
Original file line number Diff line number Diff line change 6
6
delegate_to : localhost
7
7
8
8
- name : Add GitHub Bot SSH key
9
+ when : github_bot_private_key_file.stat.exists
9
10
ansible.builtin.copy :
10
11
src : " {{ inventory_dir }}/github-bot-private-key"
11
12
dest : /home/{{ ansible_user }}/.ssh/ota-github-bot-key
12
13
owner : " {{ ansible_user }}"
13
14
group : " {{ ansible_user }}"
14
15
mode : " 600"
15
- when : github_bot_private_key_file.stat.exists
16
16
17
17
- name : Add GitHub SSH key to known_hosts
18
18
ansible.builtin.known_hosts :
Original file line number Diff line number Diff line change 12
12
register : existing_repository
13
13
14
14
- name : Obtain initial data from branch {{ ota_git_database_branch }} of {{ ota_git_database_repository }}
15
+ when : existing_repository.before is defined and not existing_repository.before # if existing_repository.before is null, then the repository is new
15
16
ansible.builtin.git :
16
17
repo : " {{ ota_git_database_repository }}"
17
18
version : " {{ ota_git_database_branch }}"
18
19
dest : " {{ ota_git_database_directory }}"
19
20
key_file : /home/{{ ansible_user }}/.ssh/ota-github-bot-key
20
- when : existing_repository.before is defined and not existing_repository.before # if existing_repository.before is null, then the repository is new
21
21
22
22
- name : Configure {{ ota_git_database_directory }} repository to use the GitHub Bot SSH Key
23
23
community.general.git_config :
Original file line number Diff line number Diff line change 6
6
- stop
7
7
8
8
- name : Stop Open Terms Archive applications
9
+ when : pm2_config.stat.exists
9
10
ansible.builtin.command :
10
11
cmd : pm2 delete pm2.config.cjs
11
12
chdir : /home/{{ ansible_user }}/{{ ota_directory }}
12
13
tags :
13
14
- stop
14
- when : pm2_config.stat.exists
15
15
16
16
- name : Copy pm2.config.cjs file
17
17
ansible.builtin.copy :
You can’t perform that action at this time.
0 commit comments