Discard useless local-fact role
parent
4afecdeb89
commit
f589c18e36
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: otis.adm.crans.org
|
||||
roles:
|
||||
- local-facts
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
- name: get git version
|
||||
shell: git rev-parse HEAD
|
||||
register: git_version
|
||||
delegate_to: 127.0.0.1
|
||||
become: false
|
||||
|
||||
- name: Create local_fact directory
|
||||
file:
|
||||
path: /etc/ansible/facts.d/
|
||||
state: directory
|
||||
|
||||
- name: Update latest commit hash
|
||||
template:
|
||||
src: facts.d/hash.fact.j2
|
||||
dest: /etc/ansible/facts.d/hash.fact
|
||||
mode: 0644
|
|
@ -1,4 +0,0 @@
|
|||
{{ ansible_header | comment }}
|
||||
|
||||
[commit]
|
||||
latest_commit_hash: {{ git_version.stdout }}
|
Loading…
Reference in New Issue