Skip to content

Commit

Permalink
various: cleanup permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Feb 13, 2024
1 parent ef1fb74 commit 87a0bf5
Show file tree
Hide file tree
Showing 28 changed files with 69 additions and 69 deletions.
4 changes: 2 additions & 2 deletions roles/authelia/tasks/subtasks/file_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
dest: "{{ authelia_paths_location }}/configuration.yml"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
when: (not authelia_config_stat.stat.exists)

- name: File | Format 'configuration.yml'
Expand Down Expand Up @@ -53,7 +53,7 @@
dest: "{{ authelia_paths_location }}/users_database.yml"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
when: (not authelia_user_config_stat.stat.exists)

- name: File | Remove LLDAP Container
Expand Down
2 changes: 1 addition & 1 deletion roles/authelia/tasks/subtasks/ldap_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
dest: "{{ authelia_paths_location }}/configuration.yml"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
when: (not authelia_config_stat.stat.exists)

- name: LDAP | Format 'configuration.yml'
Expand Down
2 changes: 1 addition & 1 deletion roles/autoscan/tasks/subtasks/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
dest: "{{ autoscan_paths_config_location }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
6 changes: 3 additions & 3 deletions roles/backup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
state: touch
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Check if previous backup folder exists
ansible.builtin.stat:
Expand Down Expand Up @@ -179,7 +179,7 @@
dest: "{{ backup.local.destination }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: true
with_items:
- "{{ playbook_dir }}/ansible.cfg"
Expand All @@ -205,7 +205,7 @@
dest: "{{ backup.local.destination }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: true
when: backup_excludes_list.stat.exists

Expand Down
6 changes: 3 additions & 3 deletions roles/backup2/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
state: touch
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Check if previous backup folder exists
ansible.builtin.stat:
Expand Down Expand Up @@ -107,7 +107,7 @@
dest: "{{ backup.local.destination }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: true
with_items:
- "{{ playbook_dir }}/ansible.cfg"
Expand All @@ -133,7 +133,7 @@
dest: "{{ backup.local.destination }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: true
when: backup_excludes_list.stat.exists

Expand Down
2 changes: 1 addition & 1 deletion roles/cloudplow/tasks/subtasks/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
dest: "{{ cloudplow_config_path }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: true

- name: Settings | Existing 'config.json' tasks
Expand Down
4 changes: 2 additions & 2 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
dest: "/srv/git/saltbox/inventories/host_vars/localhost.yml"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
when: (not localhost_yml.stat.exists)

- name: Install required packages
Expand Down Expand Up @@ -179,7 +179,7 @@
dest: "/home/{{ user.name }}/.config/pip/pip.conf"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: true

- name: "Install yyq"
Expand Down
2 changes: 1 addition & 1 deletion roles/ddclient/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
dest: "/opt/ddclient/ddclient.conf"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: false
when: cloudflare_is_enabled

Expand Down
2 changes: 1 addition & 1 deletion roles/diun/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
dest: "{{ diun_paths_location }}/diun.yml"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: false

- name: Create Docker container
Expand Down
2 changes: 1 addition & 1 deletion roles/docker/tasks/subtasks/daemon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
ansible.builtin.template:
src: daemon.json.j2
dest: /etc/docker/daemon.json
mode: "0775"
mode: "0664"
force: true

- name: "Daemon | Create override directory"
Expand Down
2 changes: 1 addition & 1 deletion roles/emby/tasks/subtasks/post-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
dest: "{{ emby_paths_dlna_xml_location }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: false

- name: Post-Install | Settings Tasks
Expand Down
4 changes: 2 additions & 2 deletions roles/jellyfin/tasks/subtasks/preinstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
dest: "{{ jellyfin_paths_sys_xml_location }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: false

- name: Preinstall MIGRATE | Remove old `{{ jellyfin_paths_xml_loct_old | basename }}` if it exists"
Expand Down Expand Up @@ -71,7 +71,7 @@
dest: "{{ jellyfin_paths_dlna_location }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: false
when: (not jellyfin_dlna.stat.exists)

Expand Down
2 changes: 1 addition & 1 deletion roles/lldap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
dest: "{{ lldap_paths_location }}/lldap_config.toml"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
when: (not lldap_config_stat.stat.exists)

- name: Create Docker container
Expand Down
4 changes: 2 additions & 2 deletions roles/motd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
dest: /opt/motd/config.json
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: false
when: (not motd_config.stat.exists)

Expand Down Expand Up @@ -138,7 +138,7 @@
state: touch
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Set 'saltbox-motd.py' as executable
ansible.builtin.file:
Expand Down
2 changes: 1 addition & 1 deletion roles/nzbthrottle/tasks/subtasks/pre-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
dest: "{{ nzbthrottle_paths_config_location }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
force: true
30 changes: 15 additions & 15 deletions roles/qbittorrent/tasks/subtasks/post-install/settings/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update Connection\PortRangeMin in 'qBittorrent.conf' config settings (legacy)
community.general.ini_file:
Expand All @@ -29,7 +29,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update WebUI\HostHeaderValidation 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -41,7 +41,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update WebUI\CSRFProtection 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -53,7 +53,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update WebUI\CustomHTTPHeaders 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -65,7 +65,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update WebUI\CustomHTTPHeadersEnabled 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -77,7 +77,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update LegalNotice.Accepted 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -89,7 +89,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update WebUI\Port 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -101,7 +101,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update WebUI\Port 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -113,7 +113,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update WebUI\TrustedReverseProxiesList 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -125,7 +125,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update WebUI\ReverseProxySupportEnabled 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -137,7 +137,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update FileLogger\Enabled 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -149,7 +149,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Update FileLogger\Path 'qBittorrent.conf' config settings
community.general.ini_file:
Expand All @@ -161,7 +161,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Generate Password Hash
when: not qbittorrent_paths_conf_stat.stat.exists
Expand All @@ -180,7 +180,7 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"

- name: Post-Install | Settings | Set qBittorrent 'WebUI\Password_PBKDF2'
community.general.ini_file:
Expand All @@ -191,4 +191,4 @@
state: present
owner: "{{ user.name }}"
group: "{{ user.name }}"
mode: "0775"
mode: "0664"
Loading

0 comments on commit 87a0bf5

Please sign in to comment.