Skip to content

Commit

Permalink
Merge pull request #200 from bschonec/become_root_on_linux
Browse files Browse the repository at this point in the history
Install tasks should become: true so that the role can be run as a non-root user. Fixes #190
  • Loading branch information
MonolithProjects authored Apr 24, 2024
2 parents 1662b29 + 51d03f8 commit a5e9318
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/install_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- libicu57
state: present
update_cache: true
become: true
when: (ansible_facts.distribution == "Debian" and ansible_facts.distribution_major_version == "9")

- name: Install dependencies on Debian Buster
Expand All @@ -24,6 +25,7 @@
- libicu63
state: present
update_cache: true
become: true
when: (ansible_facts.distribution == "Debian" and ansible_facts.distribution_major_version == "10")

- name: Install dependencies on Debian Bullseye
Expand All @@ -37,6 +39,7 @@
- libicu67
state: present
update_cache: true
become: true
when: (ansible_facts.distribution == "Debian" and ansible_facts.distribution_major_version == "11")

- name: Install dependencies on Debian Bookworm
Expand All @@ -50,6 +53,7 @@
- libicu72
state: present
update_cache: true
become: true
when: (ansible_facts.distribution == "Debian" and ansible_facts.distribution_major_version == "12")

- name: Install dependencies on Ubuntu Xenial systems
Expand All @@ -63,6 +67,7 @@
- libicu55
state: present
update_cache: true
become: true
when: (ansible_facts.distribution == "Ubuntu" and ansible_facts.distribution_major_version == "16")

- name: Install dependencies on Ubuntu Bionic systems
Expand All @@ -76,6 +81,7 @@
- libicu60
state: present
update_cache: true
become: true
when: (ansible_facts.distribution == "Ubuntu" and ansible_facts.distribution_major_version == "18")

- name: Install dependencies on Ubuntu Focal systems
Expand All @@ -89,6 +95,7 @@
- libicu66
state: present
update_cache: true
become: true
when: (ansible_facts.distribution == "Ubuntu" and ansible_facts.distribution_major_version == "20")

- name: Install dependencies on Ubuntu Jammy systems
Expand All @@ -101,6 +108,7 @@
- libicu70
state: present
update_cache: true
become: true
when: (ansible_facts.distribution == "Ubuntu" and ansible_facts.distribution_major_version == "22")

- name: Install dependencies on RHEL/CentOS/Fedora systems
Expand All @@ -113,6 +121,7 @@
- libicu
state: present
update_cache: true
become: true
when: (ansible_facts.distribution == "RedHat") or
(ansible_facts.distribution == "CentOS") or
(ansible_facts.distribution == "Fedora") or
Expand Down
1 change: 1 addition & 0 deletions tasks/install_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
ansible.builtin.command: "./svc.sh start"
args:
chdir: "{{ runner_dir }}"
become: true
no_log: "{{ hide_sensitive_logs | bool }}"
ignore_errors: "{{ ansible_check_mode }}"
changed_when: true
Expand Down

0 comments on commit a5e9318

Please sign in to comment.