new version after nix
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
---
|
||||
- name: Configure Fedora Sway workstation
|
||||
hosts: workstation
|
||||
become: true
|
||||
|
||||
vars_files:
|
||||
- vars.yml
|
||||
|
||||
pre_tasks:
|
||||
- name: Verify that the target is Fedora
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- ansible_facts["distribution"] == "Fedora"
|
||||
- ansible_facts["distribution_major_version"] == "44"
|
||||
- ansible_facts["architecture"] == "x86_64"
|
||||
fail_msg: "This playbook supports native Fedora 44 x86_64 workstations."
|
||||
|
||||
- name: Verify that the workstation user is not root
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- user_name != "root"
|
||||
- user_home != "/root"
|
||||
fail_msg: "Run ansible-playbook as the workstation user, using --ask-become-pass for sudo."
|
||||
|
||||
tasks:
|
||||
- ansible.builtin.import_tasks: tasks/dnf_packages.yml
|
||||
- ansible.builtin.import_tasks: tasks/system.yml
|
||||
- ansible.builtin.import_tasks: tasks/services.yml
|
||||
- ansible.builtin.import_tasks: tasks/tooling.yml
|
||||
- ansible.builtin.import_tasks: tasks/sqlcmd.yml
|
||||
when: install_sqlcmd
|
||||
- ansible.builtin.import_tasks: tasks/zen.yml
|
||||
- ansible.builtin.import_tasks: tasks/dotfiles.yml
|
||||
- ansible.builtin.import_tasks: tasks/user_config.yml
|
||||
Reference in New Issue
Block a user