Compare commits

...
6 Commits
4 changed files with 41 additions and 12 deletions

No files matched your search

+2 -2
View File
@@ -8,13 +8,13 @@ skip_list:
- yaml[colons] - yaml[colons]
- jinja[spacing] - jinja[spacing]
- fqcn[action] - fqcn[action]
- name[missing]
- yaml[comments]
warn_list: warn_list:
- literal-compare - literal-compare
- ignore-errors - ignore-errors
- no-changed-when - no-changed-when
- yaml[indentation] - yaml[indentation]
- yaml[comments]
- risky-file-permissions - risky-file-permissions
- name[missing]
- risky-shell-pipe - risky-shell-pipe
+15 -9
View File
@@ -31,16 +31,16 @@
- include_tasks: facts/general/service.yml - include_tasks: facts/general/service.yml
- include_tasks: facts/general/user.yml - include_tasks: facts/general/user.yml
- include_tasks: tasks/general/tests/internet_check.yml
####### Start ####### ####### Start #######
- name: Main | Start - name: Main | Start
block: block:
- name: Main | Start | Notify | Touch File - include_tasks: tasks/general/acct_mgmt/notify.yml
include_tasks: tasks/general/acct_mgmt/notify.yml vars:
notify_message: "Provisioning Started"
- name: Main | Start | Notify | Add Message
shell : echo "'Ansible' 'Provisioning started @ `date`'" >> "{{ notify_log_file }}"
when: workstation when: workstation
@@ -96,7 +96,7 @@
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"
- include_tasks: tasks/general/software/aur.yml - include_tasks: tasks/general/software/aur.yml
when: ansible_pkg_mgr == "pacman" when: internet and ansible_pkg_mgr == "pacman"
# Gather again in case missing programs have now been installed. # Gather again in case missing programs have now been installed.
- include_tasks: facts/general/gather.yml - include_tasks: facts/general/gather.yml
@@ -152,7 +152,9 @@
# TBD: Implement this: and extra_desktops # TBD: Implement this: and extra_desktops
## Software Tasks ## ## Software Tasks ##
- block:
- name: Main | Workstation Setup | Linux
block:
- include_tasks: tasks/workstation/linux/software/packages.yml - include_tasks: tasks/workstation/linux/software/packages.yml
- include_tasks: tasks/workstation/linux/software/tlp.yml - include_tasks: tasks/workstation/linux/software/tlp.yml
- include_tasks: tasks/workstation/linux/software/lutris.yml - include_tasks: tasks/workstation/linux/software/lutris.yml
@@ -171,7 +173,8 @@
when: ansible_system == "Darwin" when: ansible_system == "Darwin"
## Configuration Tasks ## ## Configuration Tasks ##
- block: - name: Main | Workstation Setup | Configuration
block:
- include_tasks: tasks/workstation/shared/settings/gnome.yml - include_tasks: tasks/workstation/shared/settings/gnome.yml
- include_tasks: tasks/workstation/shared/settings/cinnamon.yml - include_tasks: tasks/workstation/shared/settings/cinnamon.yml
- include_tasks: tasks/workstation/shared/settings/xdg_autostart.yml - include_tasks: tasks/workstation/shared/settings/xdg_autostart.yml
@@ -192,7 +195,8 @@
- include_tasks: tasks/workstation/shared/settings/templates.yml - include_tasks: tasks/workstation/shared/settings/templates.yml
## Final Tasks (SLOW) ## ## Final Tasks (SLOW) ##
- block: - name: Main | Workstation Setup | Linux [Slow]
block:
- include_tasks: tasks/workstation/linux/software/flatpaks.yml - include_tasks: tasks/workstation/linux/software/flatpaks.yml
when: flatpak_distro when: flatpak_distro
- include_tasks: tasks/workstation/linux/software/java.yml - include_tasks: tasks/workstation/linux/software/java.yml
@@ -290,5 +294,7 @@
block: block:
- include_tasks: tasks/general/acct_mgmt/notify.yml - include_tasks: tasks/general/acct_mgmt/notify.yml
vars:
notify_message: "Provisioning Finished"
- include_tasks: tasks/general/tests/lock_remove.yml - include_tasks: tasks/general/tests/lock_remove.yml
+5 -1
View File
@@ -6,6 +6,10 @@
loop: loop:
- touch "{{ notify_log_file }}" - touch "{{ notify_log_file }}"
- chmod 777 "{{ notify_log_file }}" - chmod 777 "{{ notify_log_file }}"
register: shell_check
changed_when: shell_check.rc != 0
- name: General | Notify | Add Message - name: General | Notify | Add Message
shell : echo "'Ansible' 'Provisioning finished @ `date`'" >> "{{ notify_log_file }}" shell : echo "'Ansible' '{{ notify_message }} @ `date`'" >> "{{ notify_log_file }}"
register: shell_check
changed_when: shell_check.rc != 0
+19
View File
@@ -0,0 +1,19 @@
---
# 20261002 - Hyperling
# Check whether we're connected to the internet and skip certain playbooks if not.
- name: General | Tests | Internet | Facts
ansible.builtin.set_fact:
internet: true
- name: General | Tests | Internet | Check
ansible.builtin.wait_for:
host: archlinux.org.com
port: 443
state: started
timeout: 15
register: internet_check
- name: General | Tests | Internet | Facts
ansible.builtin.set_fact:
internet: "{{ internet_check is success }}"