updated src builds
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
- name: Remove existing install
|
||||
- name: Remove existing install {{ pkg }}
|
||||
when:
|
||||
- nwg_hello.clean
|
||||
become: true
|
||||
@@ -9,23 +9,23 @@
|
||||
state: absent
|
||||
path: "{{ file }}"
|
||||
|
||||
- name: Check if nwg-hello is installed
|
||||
- name: Check for installed {{ pkg }}
|
||||
register: stat_nwg_hello_inst
|
||||
ansible.builtin.stat:
|
||||
path: /etc/nwg-hello
|
||||
|
||||
- name: Build and install nwg-hello
|
||||
- name: Build and install {{ pkg }}
|
||||
when:
|
||||
- not stat_nwg_hello_inst.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
- name: Clone git repository {{ pkg }}
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ nwg_hello.git_path }}"
|
||||
repo: "{{ nwg_hello.git_repo }}"
|
||||
version: "{{ nwg_hello.vers }}"
|
||||
|
||||
- name: Apply patch Alpine linux
|
||||
- name: Apply patch Alpine linux {{ pkg }}
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
ansible.posix.patch:
|
||||
@@ -34,7 +34,7 @@
|
||||
state: present
|
||||
strip: 1
|
||||
|
||||
- name: Install nwg-hello
|
||||
- name: Install {{ pkg }}
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: /etc/nwg-hello
|
||||
|
||||
Reference in New Issue
Block a user