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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -43,7 +43,7 @@
# Install schema as root # Install schema as root
# We can't do a `become_user` here # We can't do a `become_user` here
- name: Install LDAP schema - 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 # then fix permissions
- name: Fix permissions - name: Fix permissions
@ -53,8 +53,8 @@
group: openldap group: openldap
recurse: true recurse: true
with_items: with_items:
- '/var/lib/ldap' - /var/lib/ldap
- '/etc/ldap/slapd.d' - /etc/ldap/slapd.d
# Save the day # Save the day
- name: Start LDAP server - name: Start LDAP server

View file

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

View file

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

View file

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

View file

@ -11,7 +11,7 @@
# Add the repository into source list # Add the repository into source list
- name: Configure riot repository - name: Configure riot repository
apt_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 # Add the key
- name: Configure the apt key - name: Configure the apt key

View file

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