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 - name: Configure APT mirrors
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch' when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'
template: template:
src: 'apt/sources.list' src: 'apt/sources.list.j2'
dest: '/etc/apt/sources.list' dest: '/etc/apt/sources.list'
mode: 0644 mode: 0644

View file

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

View file

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

View file

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

View file

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

View file

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