collection 교체

This commit is contained in:
정훈 변
2024-02-23 16:37:40 +09:00
parent b494779b5b
commit 3fd554eee9
38862 changed files with 220204 additions and 6600073 deletions

View File

@@ -1,5 +1,13 @@
shippable/posix/group1
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
azp/posix/1
skip/aix
skip/freebsd
skip/osx
skip/macos
skip/macos
skip/rhel9.0 # See https://www.reddit.com/r/Fedora/comments/si7nzk/homectl/
skip/rhel9.1 # See https://www.reddit.com/r/Fedora/comments/si7nzk/homectl/
skip/rhel9.2 # See https://www.reddit.com/r/Fedora/comments/si7nzk/homectl/
skip/rhel9.3 # See https://www.reddit.com/r/Fedora/comments/si7nzk/homectl/

View File

@@ -1,20 +1,25 @@
---
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
# Get systemd version and if it doesn't exist don't run these tests.
- name: check systemd version
command: "systemctl --version"
register: systemd_version
ignore_errors: yes
ignore_errors: true
- name: check homectl version
command: homectl --version
register: homectl_version
ignore_errors: yes
ignore_errors: true
- block:
- name: Check and start systemd-homed service
service:
name: systemd-homed.service
state: started
enabled: yes
enabled: true
- name: Add a user 'james'
community.general.homectl:
@@ -50,9 +55,9 @@
name: foo
password: uq4895738!@#$%dfd
state: present
resize: yes
resize: true
register: resize_out
ignore_errors: yes
ignore_errors: true
- name: Use option 'disksize=1G' without option resize (allowed)
community.general.homectl:
@@ -61,13 +66,13 @@
state: present
disksize: 1G
register: disk_out
ignore_errors: yes
ignore_errors: true
- name: Try to Create user without giving password
community.general.homectl:
name: danielle
register: danielle_out
ignore_errors: yes
ignore_errors: true
- name: remove user 'foobar' without requiring password
community.general.homectl:
@@ -97,20 +102,20 @@
name: janet
state: absent
register: user_not_exist
ignore_errors: yes
ignore_errors: true
- name: Use check_mode to try and create user 'diana'
community.general.homectl:
name: diana
password: helloworld123!@
state: present
check_mode: yes
check_mode: true
register: diana_create_checkmode_out
- name: Verify user 'diana' was not created with check_mode
command: homectl inspect diana
register: user_diana_exists
ignore_errors: yes
ignore_errors: true
- name: Try to modify user 'jake' with only noexec mount option in check_mode
community.general.homectl:
@@ -118,7 +123,7 @@
password: myreallysecurepassword12!
state: present
mountopts: noexec
check_mode: yes
check_mode: true
register: jake_checkmode_out
- name: Verify user 'jake' was not modified and still has all mount options
@@ -147,8 +152,8 @@
password: incorrectPassword!
state: present
mountopts: noexec
locked: yes
ignore_errors: yes
locked: true
ignore_errors: true
register: jake_incorrect_pass_out
- assert:
@@ -174,3 +179,4 @@
when:
- systemd_version.rc == 0 and (systemd_version.stdout | regex_search('[0-9][0-9][0-9]') | int >= 245) and homectl_version.rc == 0
- ansible_distribution != 'Archlinux' # TODO!
- ansible_distribution != 'Fedora' or ansible_distribution_major_version|int < 36 # TODO!