lint: remove empty lines after ---
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
Creates users specified in the `users` variable. Syntax:
|
Creates users specified in the `users` variable. Syntax:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
namespace: uumas
|
namespace: uumas
|
||||||
name: general
|
name: general
|
||||||
description: General roles
|
description: General roles
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
requires_ansible: ">=2.10"
|
requires_ansible: ">=2.10"
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
argument_specs:
|
argument_specs:
|
||||||
main:
|
main:
|
||||||
short_description: Apt repository
|
short_description: Apt repository
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Reload caddy
|
- name: Reload caddy
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: caddy
|
name: caddy
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
install_packages:
|
install_packages:
|
||||||
- sudo
|
- sudo
|
||||||
- vim
|
- vim
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure packages defined in install_packages are installed
|
- name: Ensure packages defined in install_packages are installed
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: "{{ install_packages }}"
|
name: "{{ install_packages }}"
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Include tasks for apt as package manager
|
- name: Include tasks for apt as package manager
|
||||||
ansible.builtin.include_tasks: apt.yml
|
ansible.builtin.include_tasks: apt.yml
|
||||||
when: ansible_pkg_mgr == 'apt'
|
when: ansible_pkg_mgr == 'apt'
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure packages defined in install_packages are installed
|
- name: Ensure packages defined in install_packages are installed
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "{{ install_packages }}"
|
name: "{{ install_packages }}"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
sshd_x11_forwarding: false
|
sshd_x11_forwarding: false
|
||||||
sshd_password_auth: false
|
sshd_password_auth: false
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure sshd config options set correctly
|
- name: Ensure sshd config options set correctly
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure sudo is installed
|
- name: Ensure sudo is installed
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: sudo
|
name: sudo
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
vhost_state: present
|
vhost_state: present
|
||||||
vhost_type: "{{ vhost_state }}"
|
vhost_type: "{{ vhost_state }}"
|
||||||
vhost_domains: []
|
vhost_domains: []
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: caddy
|
- role: caddy
|
||||||
when: vhost_web_server == 'caddy'
|
when: vhost_web_server == 'caddy'
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Add caddy vhost config
|
- name: Add caddy vhost config
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/caddy/Caddyfile
|
path: /etc/caddy/Caddyfile
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Fail if vhost_redirect_target is a relative path and vhost_redirect_preserve_path is true
|
- name: Fail if vhost_redirect_target is a relative path and vhost_redirect_preserve_path is true
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: vhost_redirect_target must be an absolute url or absolute path if vhost_redirect_preserve_path is true
|
msg: vhost_redirect_target must be an absolute url or absolute path if vhost_redirect_preserve_path is true
|
||||||
|
|||||||
Reference in New Issue
Block a user