Skip to content

Commit

Permalink
yamllint bool fixes
Browse files Browse the repository at this point in the history
Signed-off-by: clux <sszynrae@gmail.com>
  • Loading branch information
clux committed May 19, 2023
1 parent 1c72474 commit 4cdd9d2
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
5 changes: 3 additions & 2 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ rules:
brackets: # dont care about [a,b,c] vs [ a, b, c ]
min-spaces-inside: 0
max-spaces-inside: 1
comments: # allow "only" one space before a comment
min-spaces-from-content: 1
comments: disable
comments-indentation: disable
document-start: disable
new-line-at-end-of-file: enable
new-lines:
type: unix
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@
git:
repo: https://github.com/clux/provision
dest: /home/{{ user }}/provision
update: yes
update: true
become: true
4 changes: 2 additions & 2 deletions roles/arch/tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# NB: this requires `newgrp docker` or logout
# DONT DO NEWGRP AS IT WILL SCREW WITH YOUR PRIMARY GROUP
- name: Add user to docker group
user: name={{ user }} groups=docker append=yes
user: name={{ user }} groups=docker append=true

- name: systemctl enable docker --user --now
systemd: name=docker state=started enabled=yes
systemd: name=docker state=started enabled=true
4 changes: 2 additions & 2 deletions roles/arch/tasks/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

# https://www.phoronix.com/news/Fedora-39-VM-Max-Map-Count
- name: sysctl vm.max_map_count
become: yes
become: true
sysctl:
name: vm.max_map_count
value: '2147483642'
sysctl_set: true

- name: symlink hx -> helix
become: yes
become: true
file:
src: /sbin/helix
dest: /usr/local/bin/hx
Expand Down
10 changes: 5 additions & 5 deletions roles/arch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@

- import_tasks: pacman.yml
when: ansible_os_family == "Archlinux"
become: yes
become: true
tags: [arch, core]

- import_tasks: docker.yml
when: ansible_os_family == "Archlinux"
become: yes
become: true
tags: [arch, core]

- import_tasks: systemd.yml
when: ansible_os_family == "Archlinux"
become: yes
become: true
tags: [arch, core]

- import_tasks: wayland.yml
when: ansible_os_family == "Archlinux"
become: yes
become: true
tags: [arch, core]

- import_tasks: linux.yml
when: ansible_os_family == "Archlinux"
become: yes
become: true
tags: [arch, core]
2 changes: 1 addition & 1 deletion roles/arch/tasks/pacman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
- name: pacman enable multilib for steam
lineinfile:
path: /etc/pacman.conf
backrefs: yes
backrefs: true
regexp: '^\#\[multilib\]'
line: '[multilib]\nInclude = /etc/pacman.d/mirrorlist'
6 changes: 3 additions & 3 deletions roles/arch/tasks/systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
# Services that can run as --user (that haven't auto-started)
- name: systemctl enable user services
systemd: name={{ item }} state=started enabled=yes user=yes
become: no
become: false
with_items: []
#- mpd

#- name: Enable pcscd service for yubikey
# systemd:
# name: pcscd
# enabled: yes
# enabled: true
# state: started
#- name: Enable systemd-resolved for openvpn
# systemd:
# name: systemd-resolved
# enabled: yes
# enabled: true
# state: started
4 changes: 2 additions & 2 deletions roles/disks/tasks/broxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
fstype: "cifs"
opts: "user={{archbox.user}},password={{archbox.password}},nofail,noauto"
state: "mounted"
boot: no
become: yes
boot: false
become: true
with_items:
- music
- music2
Expand Down
2 changes: 1 addition & 1 deletion roles/docker/tasks/clux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# and then we can't change the ~/.docker/conf without root..
# if this doesn't work, we could chown the directory non-recursively
- file: path=/home/{{ user }}/.docker state=directory owner={{ user }} group={{ user }}
become: yes
become: true
become_user: root


Expand Down
4 changes: 2 additions & 2 deletions roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

- import_tasks: clux.yml
when: inventory_hostname != "broxy"
become: no
become: false
tags: [docker, core]

- import_tasks: broxy.yml
when: inventory_hostname == "broxy"
become: no
become: false
tags: [docker, core]
1 change: 0 additions & 1 deletion roles/lpms/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
tags: [lpms, pip, core]

- import_tasks: cargo.yml
become: no
tags: [lpms, cargo, core]

- import_tasks: goget.yml
Expand Down
2 changes: 1 addition & 1 deletion roles/ssh/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---

- name: restart sshd
become: yes
become: true
service: name=sshd state=restarted
2 changes: 1 addition & 1 deletion roles/ssh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# ssh + sshd

- import_tasks: sshd.yml
become: yes
become: true
tags: [ssh, core]
2 changes: 1 addition & 1 deletion roles/xdg/tasks/torrent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# xdg

- template: src=templates/sshtorrent.desktop dest=/usr/share/applications/
become: yes
become: true
notify: xdg-mime sshtorrent

- template:
Expand Down

0 comments on commit 4cdd9d2

Please sign in to comment.