Fix: remove unnecessary quotes

Signed-off-by: Hadrien Patte <hadrien.patte@protonmail.com>
This commit is contained in:
Hadrien Patte 2019-03-23 19:13:02 +01:00
parent 8463f1cf96
commit 5551fb5c16
No known key found for this signature in database
GPG key ID: 0954F2874A54F4B1
12 changed files with 28 additions and 28 deletions

View file

@ -23,8 +23,8 @@
# Pimp my server
- name: Customize motd
copy:
src: 'update-motd.d/00-logo'
dest: '/etc/update-motd.d/00-logo'
src: update-motd.d/00-logo
dest: /etc/update-motd.d/00-logo
mode: 0755
# Configure APT mirrors on Debian Stretch
@ -33,8 +33,8 @@
- ansible_distribution == 'Debian'
- ansible_distribution_release == 'stretch'
template:
src: 'apt/sources.list.j2'
dest: '/etc/apt/sources.list'
src: apt/sources.list.j2
dest: /etc/apt/sources.list
mode: 0644
# Patriotisme

View file

@ -18,7 +18,7 @@
- name: Configure Yarn repository
apt_repository:
repo: "deb https://dl.yarnpkg.com/debian/ stable main"
repo: deb https://dl.yarnpkg.com/debian/ stable main
# Install CodiMD dependencies
- name: Install required packages

View file

@ -47,8 +47,8 @@
# Service file
- name: Install CodiMD systemd unit
template:
src: 'systemd/codimd.service.j2'
dest: '/etc/systemd/system/codimd.service'
src: systemd/codimd.service.j2
dest: /etc/systemd/system/codimd.service
owner: root
group: root
mode: 0644

View file

@ -1,6 +1,6 @@
---
- name: Reconfigure libnss-ldapd package
command: 'dpkg-reconfigure libnss-ldapd -f noninteractive'
command: dpkg-reconfigure libnss-ldapd -f noninteractive
- name: Restart nslcd service
service:

View file

@ -3,8 +3,8 @@
- name: Filter SSH on groups
lineinfile:
dest: /etc/ssh/sshd_config
regexp: '^AllowGroups'
line: "AllowGroups root sudoldap aurore ssh"
regexp: ^AllowGroups
line: AllowGroups root sudoldap aurore ssh
# To gain root access with ldap rights
- name: Install SUDO package
@ -19,13 +19,13 @@
- name: Configure sudoers sudo group
lineinfile:
dest: /etc/sudoers
regexp: "^%{{ sudo_group }}"
regexp: ^%{{ sudo_group }}
line: "%{{ sudo_group }} ALL=(ALL:ALL) ALL"
# Set sudo location group
- name: Configure sudoers sudo location group
lineinfile:
dest: /etc/sudoers
regexp: "^%{{ sudo_group_location }}"
regexp: ^%{{ sudo_group_location }}
line: "%{{ sudo_group_location }} ALL=(ALL:ALL) ALL"
when: sudo_group_location is defined

View file

@ -3,7 +3,7 @@
- name: Copy passwd and chsh scripts
template:
src: "{{ item }}.j2"
dest: "/usr/local/bin/{{ item }}"
dest: /usr/local/bin/{{ item }}
mode: 0755
with_items:
- chsh

View file

@ -43,7 +43,7 @@
# Install schema as root
# We can't do a `become_user` here
- name: Install LDAP schema
command: 'slapadd -n 0 -l /etc/ldap/schema.ldiff -F /etc/ldap/slapd.d'
command: slapadd -n 0 -l /etc/ldap/schema.ldiff -F /etc/ldap/slapd.d
# then fix permissions
- name: Fix permissions
@ -53,8 +53,8 @@
group: openldap
recurse: true
with_items:
- '/var/lib/ldap'
- '/etc/ldap/slapd.d'
- /var/lib/ldap
- /etc/ldap/slapd.d
# Save the day
- name: Start LDAP server

View file

@ -44,8 +44,8 @@
# Service file
- name: Install matrix-appservice-discord systemd unit
template:
src: 'systemd/matrix-appservice-discord.service.j2'
dest: '/etc/systemd/system/matrix-appservice-discord.service'
src: systemd/matrix-appservice-discord.service.j2
dest: /etc/systemd/system/matrix-appservice-discord.service
owner: root
group: root
mode: 0644

View file

@ -33,8 +33,8 @@
# Service file
- name: Install matrix-appservice-irc systemd unit
template:
src: 'systemd/matrix-appservice-irc.service.j2'
dest: '/etc/systemd/system/matrix-appservice-irc.service'
src: systemd/matrix-appservice-irc.service.j2
dest: /etc/systemd/system/matrix-appservice-irc.service
owner: root
group: root
mode: 0644

View file

@ -33,8 +33,8 @@
# Service file
- name: Install matrix-appservice-webhooks systemd unit
template:
src: 'systemd/matrix-appservice-webhooks.service.j2'
dest: '/etc/systemd/system/matrix-appservice-webhooks.service'
src: systemd/matrix-appservice-webhooks.service.j2
dest: /etc/systemd/system/matrix-appservice-webhooks.service
owner: root
group: root
mode: 0644

View file

@ -11,7 +11,7 @@
# Add the repository into source list
- name: Configure riot repository
apt_repository:
repo: "deb https://riot.im/packages/debian/ {{ ansible_distribution_release }} main"
repo: deb https://riot.im/packages/debian/ {{ ansible_distribution_release }} main
# Add the key
- name: Configure the apt key

View file

@ -13,8 +13,8 @@
# Install proxy snippets
- name: Configure NGINX proxy snippets
template:
src: "nginx/snippets/{{ item }}.j2"
dest: "/etc/nginx/snippets/{{ item }}"
src: nginx/snippets/{{ item }}.j2
dest: /etc/nginx/snippets/{{ item }}
mode: 0644
loop:
- proxy-common.conf
@ -25,7 +25,7 @@
- name: Configure NGINX sites
template:
src: nginx/nginx-sites-available.j2
dest: "/etc/nginx/sites-available/{{ item.name }}"
dest: /etc/nginx/sites-available/{{ item.name }}
mode: 0644
loop: "{{ reversed_proxy_subdomains }}"
notify: Reload NGINX service
@ -40,8 +40,8 @@
# Activate sites
- name: Activate sites
file:
src: "/etc/nginx/sites-available/{{ item.name }}"
dest: "/etc/nginx/sites-enabled/{{ item.name }}"
src: /etc/nginx/sites-available/{{ item.name }}
dest: /etc/nginx/sites-enabled/{{ item.name }}
state: link
loop: "{{ reversed_proxy_subdomains }}"
notify: Reload NGINX service