Verified Commit 3d54465f authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

Added the repository and version as variables

Make the role fully idempotent by pinning the version and also use a variable
for setting the repository.
parent 2db71817
......@@ -2,6 +2,9 @@
archwiki_dir: '/srv/http/archwiki'
archwiki_domain: ''
archwiki_user: 'archwiki'
archwiki_repository: ''
archwiki_version: 157cc33b0b4459e02b0a573277e092b79bc849b1
archwiki_socket: '/run/php-fpm/archwiki.socket'
archwiki_db: 'archwiki'
......@@ -24,7 +24,7 @@
file: path=/var/log/nginx/{{ archwiki_domain }} state=directory owner=root group=root mode=0755
- name: clone archwiki repo
git: repo={{ archwiki_domain }}.git dest="{{ archwiki_dir }}/public"
git: repo={{ archwiki_repository }} dest="{{ archwiki_dir }}/public" version={{ archwiki_version }}
become: true
become_user: "{{ archwiki_user }}"
register: release
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment