Debian Codegraph @

ansible_collections/community/vmware/tools/unset_version.yml

raw
1 - name: Unset version
2 hosts: localhost
3 gather_facts: false
4 tasks:
5 - name: Get version
6 block:
7 - name: Get the current release version
8 ansible.builtin.shell: git tag --sort=-creatordate --merged|head -n1
9 register: result
10
11 - name: Set the release version
12 ansible.builtin.set_fact:
13 version: "{{ result.stdout }}"
14
15 - name: Create branch
16 ansible.builtin.shell: git checkout -b "unset_version_{{ version }}"
17
18 - name: Update galaxy.yml
19 ansible.builtin.lineinfile:
20 path: "{{ playbook_dir }}/../galaxy.yml"
21 regexp: "^version: "
22 line: "version: null"
23
24 - name: Add everything
25 ansible.builtin.shell: git add --all
26
27 - name: Commit everything
28 ansible.builtin.shell: 'git commit -m "Remove version {{ version }} from galaxy.yml"'