style: add YAML document start markers to Ansible playbooks and tasks
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 1m34s
Nix Format Check / check-format (push) Successful in 57s

This commit is contained in:
2025-03-12 14:05:42 +01:00
parent 785bd9b122
commit 112d3679da
36 changed files with 202 additions and 31 deletions

View File

@@ -1,3 +1,4 @@
---
- name: Check if Docker CE is installed
ansible.builtin.command: docker --version
register: docker_check
@@ -8,7 +9,7 @@
ansible.builtin.get_url:
url: https://get.docker.com
dest: /tmp/get-docker.sh
mode: '0755'
mode: "0755"
when: docker_check.rc != 0
- name: Install Docker CE

View File

@@ -1,3 +1,4 @@
---
- name: Include global symlinks tasks
ansible.builtin.import_tasks: tasks/global/symlinks.yml
@@ -45,4 +46,4 @@
ansible.builtin.file:
path: ~/.hushlogin
state: touch
mode: '0644'
mode: "0644"

View File

@@ -1,3 +1,4 @@
---
- name: Check if Ollama is installed
ansible.builtin.command: ollama --version
register: ollama_check
@@ -8,7 +9,7 @@
ansible.builtin.get_url:
url: https://ollama.com/install.sh
dest: /tmp/install_ollama.sh
mode: '0755'
mode: "0755"
when: ollama_check.rc != 0
- name: Install Ollama

View File

@@ -1,3 +1,4 @@
---
- name: Ensure openssh-server is installed
ansible.builtin.package:
name: openssh-server
@@ -15,6 +16,6 @@
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '0644'
validate: '/usr/sbin/sshd -t -f %s'
mode: "0644"
validate: "/usr/sbin/sshd -t -f %s"
notify: Restart SSH service

View File

@@ -1,3 +1,4 @@
---
- name: Check if Rust is installed
ansible.builtin.shell: source $HOME/.cargo/env && rustc --version
register: rust_check
@@ -10,7 +11,7 @@
ansible.builtin.get_url:
url: https://sh.rustup.rs
dest: /tmp/rustup.sh
mode: '0755'
mode: "0755"
when: rust_check.rc != 0
- name: Install Rust and Cargo

View File

@@ -1,3 +1,4 @@
---
- name: Set user home directory
ansible.builtin.set_fact:
user_home: "{{ ansible_env.HOME if ansible_user_id == 'root' else lookup('env', 'HOME') }}"

View File

@@ -1,3 +1,4 @@
---
- name: Check if Tailscale is installed
ansible.builtin.command: which tailscale
register: tailscale_check