commit f4f31b1c5db3da20d3432f262b59431d16d6ecc8
parent 0761288a701bcd1e6632c35f9f60e02e9b199b84
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date: Sun, 31 Jan 2021 04:16:56 +0200
Lint minor details
Diffstat:
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/ansible/roles/openbsd/tasks/main.yml b/ansible/roles/openbsd/tasks/main.yml
@@ -26,7 +26,8 @@
with_items:
- "{{ users__accounts }}"
-- authorized_key:
+- name: Copy public ssh keys
+ authorized_key:
user: "{{ item.name }}"
state: present
key: "{{ item.sshkeys[0] }}"
@@ -41,4 +42,4 @@
create: yes
with_items:
- "{{ users__accounts }}"
- when: item.doas == True
+ when: item.doas
diff --git a/ansible/roles/static.erethon.com/tasks/main.yml b/ansible/roles/static.erethon.com/tasks/main.yml
@@ -1,13 +1,15 @@
---
-- file:
+- name: Create /etc/httpd/
+ file:
path: /etc/httpd/
state: directory
mode: 0755
owner: root
group: wheel
-- copy:
+- name: Copy httpd config
+ copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
@@ -17,7 +19,8 @@
- { src: "httpd/", dest: "/etc/httpd" }
notify: Restart httpd
-- lineinfile:
+- name: Add individual sites
+ lineinfile:
path: /etc/httpd.conf
line: 'include "/etc/httpd/{{ item }}.conf"'
with_items: