mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-10 06:04:15 +00:00
More FQCNs and linting
This commit is contained in:
parent
588576f4dd
commit
a015186b65
32 changed files with 55 additions and 52 deletions
|
@ -3,10 +3,11 @@ skip_list:
|
|||
- risky-file-permissions
|
||||
- role-name
|
||||
- name[missing]
|
||||
- key-order[task]
|
||||
- name[template]
|
||||
|
||||
exclude_paths:
|
||||
- roles/bertvv.samba
|
||||
- roles/geerlingguy.docker
|
||||
- roles/geerlingguy.docker_arm
|
||||
- roles/geerlingguy.nfs
|
||||
|
||||
|
|
3
nas.yml
3
nas.yml
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
- hosts: all
|
||||
- name: Ansible-NAS
|
||||
hosts: all
|
||||
|
||||
roles:
|
||||
###
|
||||
|
|
|
@ -1,19 +1,20 @@
|
|||
---
|
||||
- hosts: all
|
||||
- name: Permission Data
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Warning!
|
||||
debug:
|
||||
msg: "This playbook will repermission ALL existing data in the shares defined in group_vars/all.yml to be owned by the ansible-nas user and group. If this is not what you want, exit now."
|
||||
- name: Warning!
|
||||
ansible.builtin.debug:
|
||||
msg: "This playbook will repermission ALL existing data in the shares defined in group_vars/all.yml to be owned by the ansible-nas user and group. If this is not what you want, exit now."
|
||||
|
||||
- name: 20s to change your mind...
|
||||
pause:
|
||||
seconds: 20
|
||||
- name: 20s to change your mind...
|
||||
ansible.builtin.pause:
|
||||
seconds: 20
|
||||
|
||||
- name: "Permission share data"
|
||||
file:
|
||||
path: "{{ item.path }}"
|
||||
owner: ansible-nas
|
||||
group: ansible-nas
|
||||
mode: "u=rwX,g=rwX,o=rX"
|
||||
recurse: true
|
||||
loop: "{{ samba_shares }}"
|
||||
- name: "Permission share data"
|
||||
ansible.builtin.file:
|
||||
path: "{{ item.path }}"
|
||||
owner: ansible-nas
|
||||
group: ansible-nas
|
||||
mode: "u=rwX,g=rwX,o=rX"
|
||||
recurse: true
|
||||
loop: "{{ samba_shares }}"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
airsonic_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
bazarr_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
bitwarden_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
booksonic_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
calibre_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
cloudcmd_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
cloudflare_ddns_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
code_server_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
couchpotato_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
dashy_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
deluge_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
dokuwiki_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
drone_ci_enabled: false
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
memory: "{{ drone_ci_agent_memory }}"
|
||||
|
||||
- name: Add webhook allowed hosts to Gitea
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ gitea_data_directory }}/gitea/gitea/conf/app.ini"
|
||||
block: |
|
||||
[webhook]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
duplicacy_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
emby_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
esphome_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
firefly_enabled: false
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
memory: "{{ firefly_mysql_memory }}"
|
||||
|
||||
- name: Wait for MySQL to init
|
||||
pause:
|
||||
ansible.builtin.pause:
|
||||
seconds: 30
|
||||
|
||||
- name: Create Firefly III container
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
heimdall_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
hello_world_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
komga_enabled: false
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
vars:
|
||||
krusader_enabled: false
|
||||
|
|
|
@ -14,4 +14,4 @@ minecraft_bedrock_server_container_name: minecraft-bedrock-server
|
|||
minecraft_bedrock_server_name: "Ansible-NAS Minecraft Server"
|
||||
minecraft_bedrock_server_game_mode: "creative"
|
||||
minecraft_bedrock_server_difficulty: "normal"
|
||||
minecraft_bedrock_server_online_mode: "false"
|
||||
minecraft_bedrock_server_online_mode: "false"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Create Minecraft Bedrock Server Directories
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
|
@ -9,7 +9,7 @@
|
|||
- name: Start Minecraft Bedrock Server
|
||||
block:
|
||||
- name: Minecraft Bedrock Server Docker Container
|
||||
docker_container:
|
||||
community.docker.docker_container:
|
||||
name: "{{ minecraft_bedrock_server_container_name }}"
|
||||
image: itzg/minecraft-bedrock-server
|
||||
pull: true
|
||||
|
@ -29,7 +29,7 @@
|
|||
- name: Stop Minecraft Bedrock Server
|
||||
block:
|
||||
- name: Stop Minecraft Bedrock Server
|
||||
docker_container:
|
||||
community.docker.docker_container:
|
||||
name: "{{ minecraft_bedrock_server_container_name }}"
|
||||
state: absent
|
||||
when: minecraft_bedrock_server_enabled is false
|
||||
when: minecraft_bedrock_server_enabled is false
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Restart Nomad
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
state: restarted
|
||||
name: "{{ nomad_service_name }}"
|
||||
listen: "restart nomad"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
- name: Stop Nomad
|
||||
block:
|
||||
- name: Check if Nomad is installed
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: /usr/bin/nomad
|
||||
register: nomad_install
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- import_tasks: prometheus.yml
|
||||
- import_tasks: telegraf.yml
|
||||
- import_tasks: exporters.yml
|
||||
- import_tasks: grafana.yml
|
||||
- ansible.builtin.import_tasks: prometheus.yml
|
||||
- ansible.builtin.import_tasks: telegraf.yml
|
||||
- ansible.builtin.import_tasks: exporters.yml
|
||||
- ansible.builtin.import_tasks: grafana.yml
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
|
|
Loading…
Reference in a new issue