Make templates end in .j2

This commit is contained in:
Alexandre Iooss 2019-02-19 10:42:57 +01:00
parent accaf24908
commit 5cc4e5bbc0
14 changed files with 14 additions and 15 deletions

View file

@ -31,7 +31,7 @@
- name: Configure APT mirrors
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'
template:
src: 'apt/sources.list'
src: 'apt/sources.list.j2'
dest: '/etc/apt/sources.list'
mode: 0644

View file

@ -3,7 +3,7 @@
- name: Configure NodeJS pin
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'
template:
src: apt/nodejs
src: apt/nodejs.j2
dest: /etc/apt/preferences.d/nodejs
mode: 0644

View file

@ -2,7 +2,7 @@
- name: Configure Debian Backports
when: ansible_distribution == 'Debian'
template:
src: 'backports.list'
dest: '/etc/apt/sources.list.d/backports.list'
src: backports.list.j2
dest: /etc/apt/sources.list.d/backports.list
mode: 0644

View file

@ -3,22 +3,21 @@
- name: Configure Debian Buster mirrors
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'
template:
src: 'apt/buster.list'
dest: '/etc/apt/sources.list.d/buster.list'
src: apt/buster.list.j2
dest: /etc/apt/sources.list.d/buster.list
mode: 0644
# For DokuWiki package
- name: Configure DokuWiki pin
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'
template:
src: 'apt/dokuwiki'
dest: '/etc/apt/preferences.d/dokuwiki'
src: apt/dokuwiki.j2
dest: /etc/apt/preferences.d/dokuwiki
mode: 0644
# Install
- name: Install DokuWiki
apt:
name: dokuwiki
state: present
update_cache: yes

View file

@ -3,7 +3,7 @@
- name: Configure NodeJS pin
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'
template:
src: 'apt/nodejs'
src: 'apt/nodejs.j2'
dest: '/etc/apt/preferences.d/nodejs'
mode: 0644

View file

@ -2,17 +2,17 @@
# Disable passwd and chsh
- name: Copy passwd and chsh scripts
template:
src: "{{ item }}"
src: "{{ item }}.j2"
dest: /usr/local/bin/
mode: 0755
with_items:
- 'chsh'
- 'passwd'
- chsh
- passwd
# We do not want password change this way
- name: Symlink chsh.ldap to chsh
file:
src: "/usr/local/bin/chsh"
dest: "/usr/local/bin/chsh.ldap"
src: /usr/local/bin/chsh
dest: /usr/local/bin/chsh.ldap
state: link