-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
acab774
commit 3df5f22
Showing
65 changed files
with
320 additions
and
288 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
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
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,4 +1,4 @@ | ||
--- | ||
- name: Backup configuration | ||
ansible.builtin.include_tasks: backup.yaml | ||
include_tasks: backup.yaml | ||
when: backup_enabled |
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,4 +1,4 @@ | ||
--- | ||
- name: Install bodo | ||
ansible.builtin.include_tasks: bodo.yaml | ||
include_tasks: bodo.yaml | ||
when: bodo_enabled |
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,10 +1,10 @@ | ||
--- | ||
- name: Restart services samba | ||
become: true | ||
ansible.builtin.service: | ||
service: | ||
name: "{{ item }}" | ||
enabled: "yes" | ||
state: restarted | ||
cmd: "" | ||
|
||
with_items: | ||
- smbd |
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,8 +1,8 @@ | ||
--- | ||
- name: Install samba server | ||
ansible.builtin.include_tasks: server.yaml | ||
include_tasks: server.yaml | ||
when: samba_server_enabled | ||
|
||
- name: Install samba client | ||
ansible.builtin.include_tasks: client.yaml | ||
include_tasks: client.yaml | ||
when: samba_client_enabled |
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: Install samba | ||
become: true | ||
ansible.builtin.apt: | ||
apt: | ||
state: latest | ||
cache_valid_time: 3600 | ||
name: | ||
- samba | ||
|
||
- name: Ensure samba server share directories exist | ||
become: true | ||
ansible.builtin.file: | ||
file: | ||
path: "{{ item.path }}" | ||
state: directory | ||
with_items: "{{ samba_server_shares }}" | ||
|
||
- name: Copy the samba configuration | ||
become: true | ||
ansible.builtin.template: | ||
template: | ||
src: templates/smb.conf.j2 | ||
dest: /etc/samba/smb.conf | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
notify: restart services samba | ||
notify: Restart services samba |
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,21 +1,22 @@ | ||
--- | ||
- name: Create environments directory | ||
become: true | ||
ansible.builtin.file: | ||
file: | ||
path: /opt/conda-environments | ||
state: directory | ||
|
||
- name: Copy environments files | ||
become: true | ||
ansible.builtin.template: | ||
template: | ||
src: "{{ environment_path }}" | ||
dest: /opt/conda-environments/{{ environment_path | basename }} | ||
mode: "0644" | ||
register: _environment | ||
|
||
- name: Install conda environment {{ environment_path | basename }} | ||
become: true | ||
ansible.builtin.command: | ||
cmd: "{{ miniforge_home }}/bin/mamba env update -f /opt/conda-environments/{{ environment_path | basename }} --prefix {{ miniforge_home }}/envs/{{ environment_path | ||
command: | ||
cmd: | ||
"{{ miniforge_home }}/bin/mamba env update -f /opt/conda-environments/{{ environment_path | basename }} --prefix {{ miniforge_home }}/envs/{{ environment_path | ||
| basename | splitext | first }}" | ||
when: _environment.changed |
Oops, something went wrong.