mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
parent
bc99432f89
commit
eaa5e07b28
247 changed files with 7318 additions and 7375 deletions
|
@ -14,9 +14,9 @@
|
|||
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
|
||||
when: has_cargo | default(false) and ansible_distribution == 'Alpine'
|
||||
- block:
|
||||
- import_tasks: test_general.yml
|
||||
- import_tasks: test_version.yml
|
||||
- import_tasks: test_directory.yml
|
||||
- import_tasks: test_general.yml
|
||||
- import_tasks: test_version.yml
|
||||
- import_tasks: test_directory.yml
|
||||
environment: "{{ cargo_environment }}"
|
||||
when: has_cargo | default(false)
|
||||
- import_tasks: test_rustup_cargo.yml
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- block:
|
||||
- name: Install cargo
|
||||
package:
|
||||
name: cargo
|
||||
state: present
|
||||
- set_fact:
|
||||
has_cargo: true
|
||||
- name: Install cargo
|
||||
package:
|
||||
name: cargo
|
||||
state: present
|
||||
- set_fact:
|
||||
has_cargo: true
|
||||
when:
|
||||
- ansible_system != 'FreeBSD'
|
||||
- ansible_distribution != 'MacOSX'
|
||||
|
@ -18,25 +18,25 @@
|
|||
- ansible_distribution != 'Ubuntu' or ansible_distribution_version is version('18', '>=')
|
||||
|
||||
- block:
|
||||
- name: Install rust (containing cargo)
|
||||
package:
|
||||
name: rust
|
||||
state: present
|
||||
- set_fact:
|
||||
has_cargo: true
|
||||
- name: Install rust (containing cargo)
|
||||
package:
|
||||
name: rust
|
||||
state: present
|
||||
- set_fact:
|
||||
has_cargo: true
|
||||
when:
|
||||
- ansible_system == 'FreeBSD' and ansible_distribution_version is version('13.0', '>')
|
||||
|
||||
- block:
|
||||
- name: Download rustup
|
||||
get_url:
|
||||
url: https://sh.rustup.rs
|
||||
dest: /tmp/sh.rustup.rs
|
||||
mode: "0750"
|
||||
force: true
|
||||
- name: Install rustup cargo
|
||||
command: /tmp/sh.rustup.rs -y
|
||||
- set_fact:
|
||||
rustup_cargo_bin: "{{ lookup('env', 'HOME') }}/.cargo/bin/cargo"
|
||||
- name: Download rustup
|
||||
get_url:
|
||||
url: https://sh.rustup.rs
|
||||
dest: /tmp/sh.rustup.rs
|
||||
mode: "0750"
|
||||
force: true
|
||||
- name: Install rustup cargo
|
||||
command: /tmp/sh.rustup.rs -y
|
||||
- set_fact:
|
||||
rustup_cargo_bin: "{{ lookup('env', 'HOME') }}/.cargo/bin/cargo"
|
||||
when:
|
||||
- ansible_distribution != 'CentOS' or ansible_distribution_version is version('7.0', '>=')
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
- name: Check assertions helloworld
|
||||
assert:
|
||||
that:
|
||||
- uninstall_absent_helloworld is not changed
|
||||
- install_absent_helloworld is changed
|
||||
- install_present_helloworld is not changed
|
||||
- uninstall_present_helloworld is changed
|
||||
- uninstall_absent_helloworld is not changed
|
||||
- install_absent_helloworld is changed
|
||||
- install_present_helloworld is not changed
|
||||
- uninstall_present_helloworld is changed
|
||||
|
|
|
@ -19,5 +19,5 @@
|
|||
- name: Check assertions helloworld
|
||||
assert:
|
||||
that:
|
||||
- rustup_install_absent_helloworld is changed
|
||||
- rustup_uninstall_present_helloworld is changed
|
||||
- rustup_install_absent_helloworld is changed
|
||||
- rustup_uninstall_present_helloworld is changed
|
||||
|
|
|
@ -42,9 +42,9 @@
|
|||
- name: Check assertions helloworld-yliu
|
||||
assert:
|
||||
that:
|
||||
- install_helloworld_010 is changed
|
||||
- install_helloworld_010_idem is not changed
|
||||
- upgrade_helloworld_010 is changed
|
||||
- upgrade_helloworld_010_idem is not changed
|
||||
- downgrade_helloworld_010 is changed
|
||||
- downgrade_helloworld_010_idem is not changed
|
||||
- install_helloworld_010 is changed
|
||||
- install_helloworld_010_idem is not changed
|
||||
- upgrade_helloworld_010 is changed
|
||||
- upgrade_helloworld_010_idem is not changed
|
||||
- downgrade_helloworld_010 is changed
|
||||
- downgrade_helloworld_010_idem is not changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue