File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 3333"""
3434
3535EXAMPLES = """
36- # Parse a standard version string
37- standard: "{{ '1.2.3' | cm_version }}"
36+ - name: Parse a standard version string
37+ ansible.builtin.set_fact:
38+ standard: "{{ '1.2.3' | cm_version }}"
3839
39- # Parse a version plus build number
40- build: "{{ '1.2.3.4' | cm_version }}"
40+ - name: Parse a version plus build number
41+ ansible.builtin.set_fact:
42+ build: "{{ '1.2.3.4' | cm_version }}"
4143
42- # Parse a version plus build metadata string
43- build: "{{ '1.2.3+build7' | cm_version }}"
44+ - name: Parse a version plus build metadata string
45+ ansible.builtin.set_fact:
46+ build: "{{ '1.2.3+build7' | cm_version }}"
4447
45- # Parse a version plus prerelease and build string
46- full: "{{ '1.2.3-rc1+build7' | cm_version }}"
48+ - name: Parse a version plus prerelease and build string
49+ ansible.builtin.set_fact:
50+ full: "{{ '1.2.3-rc1+build7' | cm_version }}"
4751"""
4852
4953RETURN = """
You can’t perform that action at this time.
0 commit comments