Ansible-2.9.27 Playbook Use on openEuler
一、Ansible-2.9.27 Playbook Use on openEuler
1 地址
playbook是由yaml语法书写,结构清晰,可读性强,所以必须掌握yaml基础语法
- hosts:运行执行任务(task)的目标主机
- tasks:任务,由模板定义的操作列表
- handlers:任务,与tasks不同的是只有在接受到通知(notify)时才会被触发
2 简单的示例
查询所有主机名
mkdir -p /opt/ansible/config
cat > /opt/ansible/config/hosts << EOF
[iyuyixyz]
10.0.1.51 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass='xxx'
10.0.1.55 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass='xxx'
EOF
###
mkdir -p /opt/ansible/playbook
###
cat > /opt/ansible/playbook/hostname.yaml << EOF
---
- name: hostname
hosts: all
tasks:
- name: show hostname
command: hostname
EOF
### -C 测试 详细点可以带 -v
[root@manage ~]# ansible-playbook /opt/ansible/playbook/hostname.yaml -i /opt/ansible/config/hosts -C
PLAY [hostname] ***********************************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************
ok: [10.0.1.55]
ok: [10.0.1.51]
TASK [show hostname] ******************************************************************************************************
skipping: [10.0.1.51]
skipping: [10.0.1.55]
PLAY RECAP ****************************************************************************************************************
10.0.1.51 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
10.0.1.55 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
官方链接:https://docs.ansible.com/ansible/latest/collections/ansible/builtin/command_module.html#id6
3 nfs部署剧本
###
mkdir -p /opt/ansible/config
### 主机清单
### 10.0.1.51 客户端
### 10.0.1.55 服务端
cat > /opt/ansible/config/hosts << EOF
[iyuyixyz]
10.0.1.51 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass='xxx'
10.0.1.55 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass='xxx'
EOF
###
mkdir -p /opt/ansible/playbook/nfs
###
cat > /opt/ansible/playbook/nfs/install-nfs.yaml << EOF
---
- hosts: 10.0.1.55
tasks:
- name: add group
group: name=cici gid=2004
- name: add user
user: name=iyuyixyz uid=1005 group=cici password='$1$salt$PEfHfv8niLASlapAu7Ul11'
- name: id user
command: id iyuyixyz
- name: install nfs
yum: name=rpcbind,nfs-utils state=installed
- name: nfs configure file
copy: src=/opt/ansible/playbook/nfs/nfs.cfg dest=/etc/exports backup=yes owner=iyuyixyz group=cici mode=600
notify:
- Restart NFS
- Client Remount
- name: create mkdir dir
file: path=/opt/nfs/data state=directory owner=iyuyixyz group=cici
- name: reload exportfs
command: exportfs -arv
- name: find dir access
command: ls -l /opt/nfs
- name: start rpcbind
systemd: name=rpcbind state=started enabled=yes
- name: start nfs
systemd: name=nfs state=started enabled=yes
- name: mount local
mount: src=10.0.1.55:/opt/nfs/data path=/opt/tmp fstype=nfs state=mounted
- name: create file 1~10.txt
shell: touch /opt/tmp/cici-{1..10}.txt
- name: find data
command: ls -l /opt/nfs/data
handlers:
- name: Restart NFS
systemd:
name: nfs
state: restarted
- name: Client Remount
mount: src=10.0.1.55:/opt/nfs/data path=/opt/tmp fstype=nfs state=remounted
#- hosts: iyuyixzy
# tasks:
# - name: web server mount nfs 10.0.1.55
# mount: src=10.0.1.55:/opt/nfs/data path=/opt/db-nfs fstype=nfs state=mounted
EOF
###
cat > /opt/ansible/playbook/nfs/nfs.cfg << EOF
/opt/nfs/data 10.0.1.0/24(rw,no_subtree_check,all_squash,anonuid=1005,anongid=2004)
EOF
### 检查语法 -C
ansible-playbook -i /opt/ansible/config/hosts /opt/ansible/playbook/nfs/install-nfs.yaml -C
### 执行 -v 显示过程 -vv -vvv 更详细
ansible-playbook -vvv -i /opt/ansible/config/hosts /opt/ansible/playbook/nfs/install-nfs.yaml
ansible-playbook -i /opt/ansible/config/hosts /opt/ansible/playbook/nfs/install-nfs.yaml
ansible 10.0.1.55 -m shell -a 'df -h |grep 10.0.1.55'
ansible 10.0.1.55 -m shell -a 'tail -1 /etc/fstab'
3 nginx部署剧本
mkdir -p /opt/ansible/playbook/nginx
###
cat > /opt/ansible/playbook/nginx/install-nginx.yaml << EOF
---
- hosts: 10.0.1.71
tasks:
- name: Install Nginx
yum:
name: nginx
state: installed
- name: Index File
copy:
content: "This is Ansible website ansible.iyuyi.xyz"
dest: /usr/share/nginx/html/index.html
- name: Copy nginx.d/conf File
copy:
src: /opt/ansible/playbook/nginx/iyuyixyz.conf
dest: /etc/nginx/conf.d/default.conf
backup: yes
notify:
- Restart Nginx
- name: Start Nginx
systemd:
name: nginx
state: started
enabled: yes
handlers:
- name: Restart Nginx
systemd:
name: nginx
state: restarted
EOF
###
cat /opt/ansible/playbook/nginx/install-nginx.yaml
###
cat > /opt/ansible/playbook/nginx/iyuyixyz.conf << EOF
server {
listen 8080;
server_name ansible.iyuyi.xyz;
location / {
root /usr/share/nginx/html;
index index.html;
}
}
EOF
###
ansible-playbook -i /opt/ansible/config/hosts /opt/ansible/playbook/nginx/install-nginx.yaml -C
ansible-playbook -i /opt/ansible/config/hosts /opt/ansible/playbook/nginx/install-nginx.yaml
### centos 安装nginx需配置yum源
###[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
- name: Add Nginx Yum Repo
yum_repository:
name: nginx stable repo
description: nginx repo
baseurl: http://nginx.org/packages/centos/$releasever/$basearch/
enabled: yes
gpgcheck: yes
gpgkey: https://nginx.org/keys/nginx_signing.key
X、One Step Success
1 安装 install-nfs.yaml 日志
查看代码
[root@manage ~]# ansible-playbook -vvv -i /opt/ansible/config/hosts /opt/ansible/playbook/nfs/install-nfs.yaml
ansible-playbook 2.9.27
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.10/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.10.2 (main, Sep 8 2022, 00:00:00) [GCC 10.3.1]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /opt/ansible/config/hosts as it did not pass its verify_file() method
script declined parsing /opt/ansible/config/hosts as it did not pass its verify_file() method
auto declined parsing /opt/ansible/config/hosts as it did not pass its verify_file() method
Parsed /opt/ansible/config/hosts inventory source with ini plugin
Skipping callback 'actionable', as we already have a stdout callback.
Skipping callback 'counter_enabled', as we already have a stdout callback.
Skipping callback 'debug', as we already have a stdout callback.
Skipping callback 'dense', as we already have a stdout callback.
Skipping callback 'dense', as we already have a stdout callback.
Skipping callback 'full_skip', as we already have a stdout callback.
Skipping callback 'json', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'null', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
Skipping callback 'selective', as we already have a stdout callback.
Skipping callback 'skippy', as we already have a stdout callback.
Skipping callback 'stderr', as we already have a stdout callback.
Skipping callback 'unixy', as we already have a stdout callback.
Skipping callback 'yaml', as we already have a stdout callback.
PLAYBOOK: install-nfs.yaml ************************************************************************************************************************************************
1 plays in /opt/ansible/playbook/nfs/install-nfs.yaml
PLAY [10.0.1.55] **********************************************************************************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:2
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'\nAuthorized users only. All activities may be monitored and reported.\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708534.6756587-3687-128866135342341 `" && echo ansible-tmp-1669708534.6756587-3687-128866135342341="` echo /root/.ansible/tmp/ansible-tmp-1669708534.6756587-3687-128866135342341 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708534.6756587-3687-128866135342341=/root/.ansible/tmp/ansible-tmp-1669708534.6756587-3687-128866135342341\n', b'')
<10.0.1.55> Attempting python interpreter discovery
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<10.0.1.55> (0, b'PLATFORM\nLinux\nFOUND\n/usr/bin/python3\nENDFOUND\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 && sleep 0'"'"''
<10.0.1.55> (0, b'{"platform_dist_result": [], "osrelease_content": "NAME=\\"openEuler\\"\\nVERSION=\\"22.09\\"\\nID=\\"openEuler\\"\\nVERSION_ID=\\"22.09\\"\\nPRETTY_NAME=\\"openEuler 22.09\\"\\nANSI_COLOR=\\"0;31\\"\\n\\n"}\n', b'')
<10.0.1.55> Python interpreter discovery fallback (unsupported Linux distribution: openEuler)
Using module file /usr/lib/python3.10/site-packages/ansible/modules/system/setup.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp8jkcwrdk TO /root/.ansible/tmp/ansible-tmp-1669708534.6756587-3687-128866135342341/AnsiballZ_setup.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp8jkcwrdk /root/.ansible/tmp/ansible-tmp-1669708534.6756587-3687-128866135342341/AnsiballZ_setup.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708534.6756587-3687-128866135342341/ /root/.ansible/tmp/ansible-tmp-1669708534.6756587-3687-128866135342341/AnsiballZ_setup.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708534.6756587-3687-128866135342341/AnsiballZ_setup.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"ansible_facts": {"ansible_cmdline": {"BOOT_IMAGE": "/vmlinuz-5.10.0-106.18.0.68.oe2209.x86_64", "root": "/dev/mapper/openeuler-root", "ro": true, "resume": "/dev/mapper/openeuler-swap", "rd.lvm.lv": "openeuler/swap", "crashkernel": "512M"}, "ansible_proc_cmdline": {"BOOT_IMAGE": "/vmlinuz-5.10.0-106.18.0.68.oe2209.x86_64", "root": "/dev/mapper/openeuler-root", "ro": true, "resume": "/dev/mapper/openeuler-swap", "rd.lvm.lv": ["openeuler/root", "openeuler/swap"], "crashkernel": "512M"}, "ansible_distribution": "openEuler", "ansible_distribution_release": "NA", "ansible_distribution_version": "22.09", "ansible_distribution_major_version": "22", "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "NA", "ansible_distribution_file_parsed": true, "ansible_os_family": "RedHat", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "VMware", "ansible_hostnqn": "", "ansible_iscsi_iqn": "", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCtj6f8BDazV+uSThrSuqDdCzEtwOf6AKzttYgee2nfFmBChqP8bmaZYriLiVfFFeq7JZnyso8kP99D5E0nwr2cUHaa/pyWbLPaDTs9tcyWGlJNpcPJy974qfCLRIjTO8F1c7qci9QOxLL8bfn6DBIg2jNK5VMcBkb8xCjhQCtSwpLIXC5NMtFIJSoXvErxAlfSizdicRK64JdctTf2pNJFBAIlvQTpMiDM/S4iYQI71pxZFeaxgUT6rdT3oocdD2uKVHzmYLecfVyQsuhq/ZqCvwqMTciNQInGNNvQtf7kXnLY1hr2A9FoafTZoah38lnBnvWWdtde1LfV+5eE1mT6yCCgzYND0t7l1jsPDplcgfWvT7SCsa/ugmJj1FvpnFB8QJAJIKO8RIyF0X9rooNaZYwMN23g5lQFFsM5Dztg3HE7ynvzZfarKzVnOpPQx+MSOMo0jD0FalHt+w+s7t4ATOsCrczFNbAZsjzf+9Ih5JWwV2BykAuniGWGKDUmpbc=", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJ/j+jrlWS+swtCILe2b4C0GaIHwaHTWAbZkcWanwzG/pZmho97CLywRq3jaD7d66OmZnOPzxzV2IFwx2FWoJx0=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILZv7X81WwE/Sx9OGeUFlVz0KFoZgvj+QV/Lo9VXiWBu", "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "root", "ansible_user_dir": "/root", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_is_chroot": false, "ansible_system": "Linux", "ansible_kernel": "5.10.0-106.18.0.68.oe2209.x86_64", "ansible_kernel_version": "#1 SMP Wed Sep 28 07:03:00 UTC 2022", "ansible_machine": "x86_64", "ansible_python_version": "3.10.2", "ansible_fqdn": "localhost.localdomain", "ansible_hostname": "nfs01", "ansible_nodename": "nfs01", "ansible_domain": "localdomain", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "86b8f6eceee941ce9a9700498194bf2e", "ansible_python": {"version": {"major": 3, "minor": 10, "micro": 2, "releaselevel": "final", "serial": 0}, "version_info": [3, 10, 2, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_selinux_python_present": false, "ansible_pkg_mgr": "dnf", "ansible_system_capabilities_enforced": "False", "ansible_system_capabilities": [], "ansible_processor": ["0", "AuthenticAMD", "AMD Ryzen 7 5800H with Radeon Graphics", "1", "AuthenticAMD", "AMD Ryzen 7 5800H with Radeon Graphics"], "ansible_processor_count": 1, "ansible_processor_cores": 2, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 2, "ansible_memtotal_mb": 1472, "ansible_memfree_mb": 920, "ansible_swaptotal_mb": 2047, "ansible_swapfree_mb": 2047, "ansible_memory_mb": {"real": {"total": 1472, "used": 552, "free": 920}, "nocache": {"free": 1220, "used": 252}, "swap": {"total": 2047, "free": 2047, "used": 0, "cached": 0}}, "ansible_bios_date": "02/27/2020", "ansible_bios_version": "6.00", "ansible_form_factor": "Other", "ansible_product_name": "VMware Virtual Platform", "ansible_product_serial": "VMware-56 4d 3d a9 e6 c7 04 1b-d7 d7 01 76 a6 4c 04 54", "ansible_product_uuid": "a93d4d56-c7e6-1b04-d7d7-0176a64c0454", "ansible_product_version": "None", "ansible_system_vendor": "VMware, Inc.", "ansible_devices": {"dm-1": {"virtual": 1, "links": {"ids": ["dm-name-openeuler-swap", "dm-uuid-LVM-BBJxeoZeZk5T8ywKjlvE4bIpTVta4aJBlDCz1OwdsgATREeaB0Cv68zUAw0mk1iR"], "uuids": ["0bc97eec-fd8d-42bb-904c-84714081aada"], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "", "sectors": "4194304", "sectorsize": "512", "size": "2.00 GB", "host": "", "holders": []}, "sr0": {"virtual": 1, "links": {"ids": ["ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001"], "uuids": ["2022-09-29-02-19-52-00"], "labels": ["openEuler-22.09-x86_64"], "masters": []}, "vendor": "NECVMWar", "model": "VMware IDE CDR10", "sas_address": null, "sas_device_handle": null, "removable": "1", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "mq-deadline", "sectors": "36198400", "sectorsize": "2048", "size": "17.26 GB", "host": "IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)", "holders": []}, "dm-0": {"virtual": 1, "links": {"ids": ["dm-name-openeuler-root", "dm-uuid-LVM-BBJxeoZeZk5T8ywKjlvE4bIpTVta4aJBOKv8J0yeD08mnsfFF2oj0Vmb3fI1LXsZ"], "uuids": ["5c28e632-75b1-4345-a1f6-85240c50b7f6"], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "", "sectors": "204079104", "sectorsize": "512", "size": "97.31 GB", "host": "", "holders": []}, "sda": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": "VMware,", "model": "VMware Virtual S", "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {"sda2": {"links": {"ids": ["lvm-pv-uuid-IW2JBB-sEtQ-2PPg-oNbN-4NM8-Yopk-4wIyie"], "uuids": [], "labels": [], "masters": ["dm-0", "dm-1"]}, "start": "1435648", "sectors": "208279552", "sectorsize": 512, "size": "99.32 GB", "uuid": null, "holders": ["openeuler-swap", "openeuler-root"]}, "sda1": {"links": {"ids": [], "uuids": ["d6e8a9ec-82ec-4163-a821-1d2fc934f281"], "labels": [], "masters": []}, "start": "2048", "sectors": "1433600", "sectorsize": 512, "size": "700.00 MB", "uuid": "d6e8a9ec-82ec-4163-a821-1d2fc934f281", "holders": []}}, "rotational": "1", "scheduler_mode": "mq-deadline", "sectors": "209715200", "sectorsize": "512", "size": "100.00 GB", "host": "SCSI storage controller: Broadcom / LSI 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)", "holders": []}}, "ansible_device_links": {"ids": {"sda2": ["lvm-pv-uuid-IW2JBB-sEtQ-2PPg-oNbN-4NM8-Yopk-4wIyie"], "dm-1": ["dm-name-openeuler-swap", "dm-uuid-LVM-BBJxeoZeZk5T8ywKjlvE4bIpTVta4aJBlDCz1OwdsgATREeaB0Cv68zUAw0mk1iR"], "dm-0": ["dm-name-openeuler-root", "dm-uuid-LVM-BBJxeoZeZk5T8ywKjlvE4bIpTVta4aJBOKv8J0yeD08mnsfFF2oj0Vmb3fI1LXsZ"], "sr0": ["ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001"]}, "uuids": {"sr0": ["2022-09-29-02-19-52-00"], "dm-1": ["0bc97eec-fd8d-42bb-904c-84714081aada"], "dm-0": ["5c28e632-75b1-4345-a1f6-85240c50b7f6"], "sda1": ["d6e8a9ec-82ec-4163-a821-1d2fc934f281"]}, "labels": {"sr0": ["openEuler-22.09-x86_64"]}, "masters": {"sda2": ["dm-0", "dm-1"]}}, "ansible_uptime_seconds": 1151, "ansible_lvm": {"lvs": {"root": {"size_g": "97.31", "vg": "openeuler"}, "swap": {"size_g": "2.00", "vg": "openeuler"}}, "vgs": {"openeuler": {"size_g": "99.31", "free_g": "0", "num_lvs": "2", "num_pvs": "1"}}, "pvs": {"/dev/sda2": {"size_g": "99.31", "free_g": "0", "vg": "openeuler"}}}, "ansible_mounts": [{"mount": "/", "device": "/dev/mapper/openeuler-root", "fstype": "ext4", "options": "rw,relatime", "size_total": 102247792640, "size_available": 95454478336, "block_size": 4096, "block_total": 24962840, "block_available": 23304316, "block_used": 1658524, "inode_total": 6381568, "inode_available": 6334666, "inode_used": 46902, "uuid": "5c28e632-75b1-4345-a1f6-85240c50b7f6"}, {"mount": "/boot", "device": "/dev/sda1", "fstype": "ext4", "options": "rw,relatime", "size_total": 704241664, "size_available": 495788032, "block_size": 4096, "block_total": 171934, "block_available": 121042, "block_used": 50892, "inode_total": 44832, "inode_available": 44434, "inode_used": 398, "uuid": "d6e8a9ec-82ec-4163-a821-1d2fc934f281"}, {"mount": "/mnt", "device": "/dev/sr0", "fstype": "iso9660", "options": "ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8", "size_total": 18533492736, "size_available": 0, "block_size": 2048, "block_total": 9049557, "block_available": 0, "block_used": 9049557, "inode_total": 0, "inode_available": 0, "inode_used": 0, "uuid": "2022-09-29-02-19-52-00"}], "ansible_fips": false, "ansible_local": {}, "ansible_env": {"SHELL": "/bin/bash", "PWD": "/root", "LOGNAME": "root", "_": "/usr/bin/python3", "MOTD_SHOWN": "pam", "HOME": "/root", "LANG": "en_US.UTF-8", "LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:", "SSH_CONNECTION": "10.0.1.60 55776 10.0.1.55 22", "TERM": "xterm", "USER": "root", "SHLVL": "1", "SSH_CLIENT": "10.0.1.60 55776 22", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "SSH_TTY": "/dev/pts/1"}, "ansible_date_time": {"year": "2022", "month": "11", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "48", "day": "29", "hour": "15", "minute": "55", "second": "38", "epoch": "1669708538", "date": "2022-11-29", "time": "15:55:38", "iso8601_micro": "2022-11-29T07:55:38.219092Z", "iso8601": "2022-11-29T07:55:38Z", "iso8601_basic": "20221129T155538219092", "iso8601_basic_short": "20221129T155538", "tz": "CST", "tz_offset": "+0800"}, "ansible_fibre_channel_wwn": [], "ansible_interfaces": ["ens32", "ens33", "lo"], "ansible_ens33": {"device": "ens33", "macaddress": "00:0c:29:4c:04:5e", "mtu": 1500, "active": true, "module": "e1000", "type": "ether", "pciid": "0000:02:01.0", "speed": 1000, "promisc": false, "ipv4": {"address": "10.0.1.55", "broadcast": "10.0.1.255", "netmask": "255.255.255.0", "network": "10.0.1.0"}, "ipv6": [{"address": "fe80::65c6:519:f835:3d67", "prefix": "64", "scope": "link"}, {"address": "fe80::3e7c:f26e:6d6e:dafc", "prefix": "64", "scope": "link"}, {"address": "fe80::e453:8686:f2c5:1bc8", "prefix": "64", "scope": "link"}], "features": {"rx_checksumming": "off", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp6_segmentation": "off [fixed]", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "on", "tx_vlan_offload": "on [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "off [fixed]", "rx_vlan_filter": "on [fixed]", "vlan_challenged": "off [fixed]", "tx_lockless": "off [fixed]", "netns_local": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_gso_list": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off", "loopback": "off [fixed]", "rx_fcs": "off", "rx_all": "off", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]", "rx_gro_list": "off", "macsec_hw_offload": "off [fixed]"}, "timestamping": [], "hw_timestamp_filters": []}, "ansible_ens32": {"device": "ens32", "macaddress": "00:0c:29:4c:04:54", "mtu": 1500, "active": true, "module": "e1000", "type": "ether", "pciid": "0000:02:00.0", "speed": 1000, "promisc": false, "ipv4": {"address": "192.168.182.55", "broadcast": "192.168.182.255", "netmask": "255.255.255.0", "network": "192.168.182.0"}, "ipv6": [{"address": "fe80::4554:fd93:8fd5:df7", "prefix": "64", "scope": "link"}, {"address": "fe80::4368:bc05:3d08:9c1f", "prefix": "64", "scope": "link"}, {"address": "fe80::409d:b969:73a8:6c20", "prefix": "64", "scope": "link"}], "features": {"rx_checksumming": "off", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp6_segmentation": "off [fixed]", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "on", "tx_vlan_offload": "on [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "off [fixed]", "rx_vlan_filter": "on [fixed]", "vlan_challenged": "off [fixed]", "tx_lockless": "off [fixed]", "netns_local": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_gso_list": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off", "loopback": "off [fixed]", "rx_fcs": "off", "rx_all": "off", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]", "rx_gro_list": "off", "macsec_hw_offload": "off [fixed]"}, "timestamping": [], "hw_timestamp_filters": []}, "ansible_lo": {"device": "lo", "mtu": 65536, "active": true, "type": "loopback", "promisc": false, "ipv4": {"address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "features": {"rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "on [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "on [fixed]", "tx_lockless": "on [fixed]", "netns_local": "on [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "on", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_gso_list": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off [fixed]", "loopback": "on [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]", "rx_gro_list": "off", "macsec_hw_offload": "off [fixed]"}, "timestamping": [], "hw_timestamp_filters": []}, "ansible_default_ipv4": {"gateway": "192.168.182.2", "interface": "ens32", "address": "192.168.182.55", "broadcast": "192.168.182.255", "netmask": "255.255.255.0", "network": "192.168.182.0", "macaddress": "00:0c:29:4c:04:54", "mtu": 1500, "type": "ether", "alias": "ens32"}, "ansible_default_ipv6": {}, "ansible_all_ipv4_addresses": ["10.0.1.55", "192.168.182.55"], "ansible_all_ipv6_addresses": ["fe80::65c6:519:f835:3d67", "fe80::3e7c:f26e:6d6e:dafc", "fe80::e453:8686:f2c5:1bc8", "fe80::4554:fd93:8fd5:df7", "fe80::4368:bc05:3d08:9c1f", "fe80::409d:b969:73a8:6c20"], "ansible_lsb": {}, "ansible_apparmor": {"status": "disabled"}, "ansible_dns": {"nameservers": ["114.114.114.114"]}, "ansible_service_mgr": "systemd", "gather_subset": ["all"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["all"], "gather_timeout": 10, "filter": "*", "fact_path": "/etc/ansible/facts.d"}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708534.6756587-3687-128866135342341/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
ok: [10.0.1.55]
META: ran handlers
TASK [add group] **********************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:4
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708538.888282-3710-20289965108239 `" && echo ansible-tmp-1669708538.888282-3710-20289965108239="` echo /root/.ansible/tmp/ansible-tmp-1669708538.888282-3710-20289965108239 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708538.888282-3710-20289965108239=/root/.ansible/tmp/ansible-tmp-1669708538.888282-3710-20289965108239\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/system/group.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpp2pgdxit TO /root/.ansible/tmp/ansible-tmp-1669708538.888282-3710-20289965108239/AnsiballZ_group.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpp2pgdxit /root/.ansible/tmp/ansible-tmp-1669708538.888282-3710-20289965108239/AnsiballZ_group.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708538.888282-3710-20289965108239/ /root/.ansible/tmp/ansible-tmp-1669708538.888282-3710-20289965108239/AnsiballZ_group.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708538.888282-3710-20289965108239/AnsiballZ_group.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"name": "cici", "state": "present", "changed": false, "system": false, "gid": 2004, "invocation": {"module_args": {"name": "cici", "gid": 2004, "state": "present", "system": false, "local": false, "non_unique": false}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708538.888282-3710-20289965108239/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
ok: [10.0.1.55] => {
"changed": false,
"gid": 2004,
"invocation": {
"module_args": {
"gid": 2004,
"local": false,
"name": "cici",
"non_unique": false,
"state": "present",
"system": false
}
},
"name": "cici",
"state": "present",
"system": false
}
TASK [add user] ***********************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:6
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708540.9404466-3726-191174046001581 `" && echo ansible-tmp-1669708540.9404466-3726-191174046001581="` echo /root/.ansible/tmp/ansible-tmp-1669708540.9404466-3726-191174046001581 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708540.9404466-3726-191174046001581=/root/.ansible/tmp/ansible-tmp-1669708540.9404466-3726-191174046001581\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/system/user.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmps87e_0u2 TO /root/.ansible/tmp/ansible-tmp-1669708540.9404466-3726-191174046001581/AnsiballZ_user.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmps87e_0u2 /root/.ansible/tmp/ansible-tmp-1669708540.9404466-3726-191174046001581/AnsiballZ_user.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708540.9404466-3726-191174046001581/ /root/.ansible/tmp/ansible-tmp-1669708540.9404466-3726-191174046001581/AnsiballZ_user.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708540.9404466-3726-191174046001581/AnsiballZ_user.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"name": "iyuyixyz", "state": "present", "append": false, "move_home": false, "password": "NOT_LOGGING_PASSWORD", "changed": false, "uid": 1005, "group": 2004, "comment": "", "home": "/home/iyuyixyz", "shell": "/bin/bash", "invocation": {"module_args": {"name": "iyuyixyz", "uid": 1005, "group": "cici", "password": "", "state": "present", "non_unique": false, "force": false, "remove": false, "create_home": true, "system": false, "move_home": false, "append": false, "ssh_key_bits": 0, "ssh_key_type": "rsa", "ssh_key_comment": "ansible-generated on nfs01", "update_password": "always", "groups": null, "comment": null, "home": null, "shell": null, "login_class": null, "hidden": null, "seuser": null, "skeleton": null, "generate_ssh_key": null, "ssh_key_file": null, "ssh_key_passphrase": null, "expires": null, "password_lock": null, "local": null, "profile": null, "authorization": null, "role": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708540.9404466-3726-191174046001581/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
ok: [10.0.1.55] => {
"append": false,
"changed": false,
"comment": "",
"group": 2004,
"home": "/home/iyuyixyz",
"invocation": {
"module_args": {
"append": false,
"authorization": null,
"comment": null,
"create_home": true,
"expires": null,
"force": false,
"generate_ssh_key": null,
"group": "cici",
"groups": null,
"hidden": null,
"home": null,
"local": null,
"login_class": null,
"move_home": false,
"name": "iyuyixyz",
"non_unique": false,
"password": "",
"password_lock": null,
"profile": null,
"remove": false,
"role": null,
"seuser": null,
"shell": null,
"skeleton": null,
"ssh_key_bits": 0,
"ssh_key_comment": "ansible-generated on nfs01",
"ssh_key_file": null,
"ssh_key_passphrase": null,
"ssh_key_type": "rsa",
"state": "present",
"system": false,
"uid": 1005,
"update_password": "always"
}
},
"move_home": false,
"name": "iyuyixyz",
"password": "NOT_LOGGING_PASSWORD",
"shell": "/bin/bash",
"state": "present",
"uid": 1005
}
TASK [id user] ************************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:8
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708543.2780385-3742-66138177652276 `" && echo ansible-tmp-1669708543.2780385-3742-66138177652276="` echo /root/.ansible/tmp/ansible-tmp-1669708543.2780385-3742-66138177652276 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708543.2780385-3742-66138177652276=/root/.ansible/tmp/ansible-tmp-1669708543.2780385-3742-66138177652276\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/commands/command.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp5rxrj7z4 TO /root/.ansible/tmp/ansible-tmp-1669708543.2780385-3742-66138177652276/AnsiballZ_command.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp5rxrj7z4 /root/.ansible/tmp/ansible-tmp-1669708543.2780385-3742-66138177652276/AnsiballZ_command.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708543.2780385-3742-66138177652276/ /root/.ansible/tmp/ansible-tmp-1669708543.2780385-3742-66138177652276/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708543.2780385-3742-66138177652276/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"cmd": ["id", "iyuyixyz"], "stdout": "uid=1005(iyuyixyz) gid=2004(cici) groups=2004(cici)", "stderr": "", "rc": 0, "start": "2022-11-29 15:55:44.962057", "end": "2022-11-29 15:55:44.972196", "delta": "0:00:00.010139", "changed": true, "invocation": {"module_args": {"_raw_params": "id iyuyixyz", "warn": true, "_uses_shell": false, "stdin_add_newline": true, "strip_empty_ends": true, "argv": null, "chdir": null, "executable": null, "creates": null, "removes": null, "stdin": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708543.2780385-3742-66138177652276/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
changed: [10.0.1.55] => {
"changed": true,
"cmd": [
"id",
"iyuyixyz"
],
"delta": "0:00:00.010139",
"end": "2022-11-29 15:55:44.972196",
"invocation": {
"module_args": {
"_raw_params": "id iyuyixyz",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"rc": 0,
"start": "2022-11-29 15:55:44.962057",
"stderr": "",
"stderr_lines": [],
"stdout": "uid=1005(iyuyixyz) gid=2004(cici) groups=2004(cici)",
"stdout_lines": [
"uid=1005(iyuyixyz) gid=2004(cici) groups=2004(cici)"
]
}
TASK [install nfs] ********************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:10
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708545.7901518-3758-193806775924910 `" && echo ansible-tmp-1669708545.7901518-3758-193806775924910="` echo /root/.ansible/tmp/ansible-tmp-1669708545.7901518-3758-193806775924910 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708545.7901518-3758-193806775924910=/root/.ansible/tmp/ansible-tmp-1669708545.7901518-3758-193806775924910\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/packaging/os/dnf.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpjhfbdqfy TO /root/.ansible/tmp/ansible-tmp-1669708545.7901518-3758-193806775924910/AnsiballZ_dnf.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpjhfbdqfy /root/.ansible/tmp/ansible-tmp-1669708545.7901518-3758-193806775924910/AnsiballZ_dnf.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708545.7901518-3758-193806775924910/ /root/.ansible/tmp/ansible-tmp-1669708545.7901518-3758-193806775924910/AnsiballZ_dnf.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708545.7901518-3758-193806775924910/AnsiballZ_dnf.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"msg": "Nothing to do", "changed": false, "results": [], "rc": 0, "invocation": {"module_args": {"name": ["rpcbind", "nfs-utils"], "state": "installed", "allow_downgrade": false, "autoremove": false, "bugfix": false, "disable_gpg_check": false, "disable_plugin": [], "disablerepo": [], "download_only": false, "enable_plugin": [], "enablerepo": [], "exclude": [], "installroot": "/", "install_repoquery": true, "install_weak_deps": true, "security": false, "skip_broken": false, "update_cache": false, "update_only": false, "validate_certs": true, "lock_timeout": 30, "conf_file": null, "disable_excludes": null, "download_dir": null, "list": null, "releasever": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708545.7901518-3758-193806775924910/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
ok: [10.0.1.55] => {
"changed": false,
"invocation": {
"module_args": {
"allow_downgrade": false,
"autoremove": false,
"bugfix": false,
"conf_file": null,
"disable_excludes": null,
"disable_gpg_check": false,
"disable_plugin": [],
"disablerepo": [],
"download_dir": null,
"download_only": false,
"enable_plugin": [],
"enablerepo": [],
"exclude": [],
"install_repoquery": true,
"install_weak_deps": true,
"installroot": "/",
"list": null,
"lock_timeout": 30,
"name": [
"rpcbind",
"nfs-utils"
],
"releasever": null,
"security": false,
"skip_broken": false,
"state": "installed",
"update_cache": false,
"update_only": false,
"validate_certs": true
}
},
"msg": "Nothing to do",
"rc": 0,
"results": []
}
TASK [nfs configure file] *************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:12
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344 `" && echo ansible-tmp-1669708549.7744083-3774-156254045561344="` echo /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708549.7744083-3774-156254045561344=/root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/files/stat.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp3heg8t3v TO /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/AnsiballZ_stat.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp3heg8t3v /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/AnsiballZ_stat.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/ /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/AnsiballZ_stat.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/AnsiballZ_stat.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"changed": false, "stat": {"exists": true, "path": "/etc/exports", "mode": "0600", "isdir": false, "ischr": false, "isblk": false, "isreg": true, "isfifo": false, "islnk": false, "issock": false, "uid": 1005, "gid": 2004, "size": 84, "inode": 655380, "dev": 64768, "nlink": 1, "atime": 1669643674.3950613, "mtime": 1669643667.8105571, "ctime": 1669643669.8613086, "wusr": true, "rusr": true, "xusr": false, "wgrp": false, "rgrp": false, "xgrp": false, "woth": false, "roth": false, "xoth": false, "isuid": false, "isgid": false, "blocks": 8, "block_size": 4096, "device_type": 0, "readable": true, "writeable": true, "executable": false, "pw_name": "iyuyixyz", "gr_name": "cici", "checksum": "889bba66ff1948669594015e9967d812bd97c930", "mimetype": "text/plain", "charset": "us-ascii", "version": "403580123", "attributes": ["extents"], "attr_flags": "e"}, "invocation": {"module_args": {"path": "/etc/exports", "follow": false, "get_checksum": true, "checksum_algorithm": "sha1", "get_md5": false, "get_mime": true, "get_attributes": true}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/files/file.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpi21y2haw TO /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/AnsiballZ_file.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpi21y2haw /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/AnsiballZ_file.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/ /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/AnsiballZ_file.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/AnsiballZ_file.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"path": "/etc/exports", "changed": false, "diff": {"before": {"path": "/etc/exports"}, "after": {"path": "/etc/exports"}}, "uid": 1005, "gid": 2004, "owner": "iyuyixyz", "group": "cici", "mode": "0600", "state": "file", "size": 84, "invocation": {"module_args": {"owner": "iyuyixyz", "group": "cici", "mode": "600", "dest": "/etc/exports", "_original_basename": "nfs.cfg", "recurse": false, "state": "file", "path": "/etc/exports", "force": false, "follow": true, "modification_time_format": "%Y%m%d%H%M.%S", "access_time_format": "%Y%m%d%H%M.%S", "unsafe_writes": false, "_diff_peek": null, "src": null, "modification_time": null, "access_time": null, "seuser": null, "serole": null, "selevel": null, "setype": null, "attributes": null, "content": null, "backup": null, "remote_src": null, "regexp": null, "delimiter": null, "directory_mode": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708549.7744083-3774-156254045561344/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
ok: [10.0.1.55] => {
"changed": false,
"checksum": "889bba66ff1948669594015e9967d812bd97c930",
"dest": "/etc/exports",
"diff": {
"after": {
"path": "/etc/exports"
},
"before": {
"path": "/etc/exports"
}
},
"gid": 2004,
"group": "cici",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": "nfs.cfg",
"access_time": null,
"access_time_format": "%Y%m%d%H%M.%S",
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"dest": "/etc/exports",
"directory_mode": null,
"follow": true,
"force": false,
"group": "cici",
"mode": "600",
"modification_time": null,
"modification_time_format": "%Y%m%d%H%M.%S",
"owner": "iyuyixyz",
"path": "/etc/exports",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "file",
"unsafe_writes": false
}
},
"mode": "0600",
"owner": "iyuyixyz",
"path": "/etc/exports",
"size": 84,
"state": "file",
"uid": 1005
}
TASK [create mkdir dir] ***************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:17
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708553.4425483-3797-50603964593202 `" && echo ansible-tmp-1669708553.4425483-3797-50603964593202="` echo /root/.ansible/tmp/ansible-tmp-1669708553.4425483-3797-50603964593202 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708553.4425483-3797-50603964593202=/root/.ansible/tmp/ansible-tmp-1669708553.4425483-3797-50603964593202\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/files/file.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp0q6aaghi TO /root/.ansible/tmp/ansible-tmp-1669708553.4425483-3797-50603964593202/AnsiballZ_file.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp0q6aaghi /root/.ansible/tmp/ansible-tmp-1669708553.4425483-3797-50603964593202/AnsiballZ_file.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708553.4425483-3797-50603964593202/ /root/.ansible/tmp/ansible-tmp-1669708553.4425483-3797-50603964593202/AnsiballZ_file.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708553.4425483-3797-50603964593202/AnsiballZ_file.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"path": "/opt/nfs/data", "changed": true, "diff": {"before": {"path": "/opt/nfs/data", "state": "absent", "owner": 0, "group": 0}, "after": {"path": "/opt/nfs/data", "state": "directory", "owner": 1005, "group": 2004}}, "uid": 1005, "gid": 2004, "owner": "iyuyixyz", "group": "cici", "mode": "0755", "state": "directory", "size": 4096, "invocation": {"module_args": {"path": "/opt/nfs/data", "state": "directory", "owner": "iyuyixyz", "group": "cici", "recurse": false, "force": false, "follow": true, "modification_time_format": "%Y%m%d%H%M.%S", "access_time_format": "%Y%m%d%H%M.%S", "unsafe_writes": false, "_original_basename": null, "_diff_peek": null, "src": null, "modification_time": null, "access_time": null, "mode": null, "seuser": null, "serole": null, "selevel": null, "setype": null, "attributes": null, "content": null, "backup": null, "remote_src": null, "regexp": null, "delimiter": null, "directory_mode": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708553.4425483-3797-50603964593202/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
changed: [10.0.1.55] => {
"changed": true,
"diff": {
"after": {
"group": 2004,
"owner": 1005,
"path": "/opt/nfs/data",
"state": "directory"
},
"before": {
"group": 0,
"owner": 0,
"path": "/opt/nfs/data",
"state": "absent"
}
},
"gid": 2004,
"group": "cici",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"access_time": null,
"access_time_format": "%Y%m%d%H%M.%S",
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": "cici",
"mode": null,
"modification_time": null,
"modification_time_format": "%Y%m%d%H%M.%S",
"owner": "iyuyixyz",
"path": "/opt/nfs/data",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "directory",
"unsafe_writes": false
}
},
"mode": "0755",
"owner": "iyuyixyz",
"path": "/opt/nfs/data",
"size": 4096,
"state": "directory",
"uid": 1005
}
TASK [reload exportfs] ****************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:19
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708555.3226233-3813-243150079375222 `" && echo ansible-tmp-1669708555.3226233-3813-243150079375222="` echo /root/.ansible/tmp/ansible-tmp-1669708555.3226233-3813-243150079375222 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708555.3226233-3813-243150079375222=/root/.ansible/tmp/ansible-tmp-1669708555.3226233-3813-243150079375222\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/commands/command.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmptvh687i2 TO /root/.ansible/tmp/ansible-tmp-1669708555.3226233-3813-243150079375222/AnsiballZ_command.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmptvh687i2 /root/.ansible/tmp/ansible-tmp-1669708555.3226233-3813-243150079375222/AnsiballZ_command.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708555.3226233-3813-243150079375222/ /root/.ansible/tmp/ansible-tmp-1669708555.3226233-3813-243150079375222/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708555.3226233-3813-243150079375222/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"cmd": ["exportfs", "-arv"], "stdout": "exporting 10.0.1.0/24:/opt/nfs/data", "stderr": "", "rc": 0, "start": "2022-11-29 15:55:56.600059", "end": "2022-11-29 15:55:56.606485", "delta": "0:00:00.006426", "changed": true, "invocation": {"module_args": {"_raw_params": "exportfs -arv", "warn": true, "_uses_shell": false, "stdin_add_newline": true, "strip_empty_ends": true, "argv": null, "chdir": null, "executable": null, "creates": null, "removes": null, "stdin": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708555.3226233-3813-243150079375222/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
changed: [10.0.1.55] => {
"changed": true,
"cmd": [
"exportfs",
"-arv"
],
"delta": "0:00:00.006426",
"end": "2022-11-29 15:55:56.606485",
"invocation": {
"module_args": {
"_raw_params": "exportfs -arv",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"rc": 0,
"start": "2022-11-29 15:55:56.600059",
"stderr": "",
"stderr_lines": [],
"stdout": "exporting 10.0.1.0/24:/opt/nfs/data",
"stdout_lines": [
"exporting 10.0.1.0/24:/opt/nfs/data"
]
}
TASK [find dir access] ****************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:21
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708557.0363185-3829-249865759396438 `" && echo ansible-tmp-1669708557.0363185-3829-249865759396438="` echo /root/.ansible/tmp/ansible-tmp-1669708557.0363185-3829-249865759396438 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708557.0363185-3829-249865759396438=/root/.ansible/tmp/ansible-tmp-1669708557.0363185-3829-249865759396438\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/commands/command.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpzrtkomtw TO /root/.ansible/tmp/ansible-tmp-1669708557.0363185-3829-249865759396438/AnsiballZ_command.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpzrtkomtw /root/.ansible/tmp/ansible-tmp-1669708557.0363185-3829-249865759396438/AnsiballZ_command.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708557.0363185-3829-249865759396438/ /root/.ansible/tmp/ansible-tmp-1669708557.0363185-3829-249865759396438/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708557.0363185-3829-249865759396438/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"cmd": ["ls", "-l", "/opt/nfs"], "stdout": "total 4\\ndrwxr-xr-x 2 iyuyixyz cici 4096 Nov 29 15:55 data", "stderr": "", "rc": 0, "start": "2022-11-29 15:55:58.351284", "end": "2022-11-29 15:55:58.358053", "delta": "0:00:00.006769", "changed": true, "invocation": {"module_args": {"_raw_params": "ls -l /opt/nfs", "warn": true, "_uses_shell": false, "stdin_add_newline": true, "strip_empty_ends": true, "argv": null, "chdir": null, "executable": null, "creates": null, "removes": null, "stdin": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708557.0363185-3829-249865759396438/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
changed: [10.0.1.55] => {
"changed": true,
"cmd": [
"ls",
"-l",
"/opt/nfs"
],
"delta": "0:00:00.006769",
"end": "2022-11-29 15:55:58.358053",
"invocation": {
"module_args": {
"_raw_params": "ls -l /opt/nfs",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"rc": 0,
"start": "2022-11-29 15:55:58.351284",
"stderr": "",
"stderr_lines": [],
"stdout": "total 4\ndrwxr-xr-x 2 iyuyixyz cici 4096 Nov 29 15:55 data",
"stdout_lines": [
"total 4",
"drwxr-xr-x 2 iyuyixyz cici 4096 Nov 29 15:55 data"
]
}
TASK [start rpcbind] ******************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:23
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708558.7919154-3845-36368183075369 `" && echo ansible-tmp-1669708558.7919154-3845-36368183075369="` echo /root/.ansible/tmp/ansible-tmp-1669708558.7919154-3845-36368183075369 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708558.7919154-3845-36368183075369=/root/.ansible/tmp/ansible-tmp-1669708558.7919154-3845-36368183075369\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/system/systemd.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpgicwlckx TO /root/.ansible/tmp/ansible-tmp-1669708558.7919154-3845-36368183075369/AnsiballZ_systemd.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpgicwlckx /root/.ansible/tmp/ansible-tmp-1669708558.7919154-3845-36368183075369/AnsiballZ_systemd.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708558.7919154-3845-36368183075369/ /root/.ansible/tmp/ansible-tmp-1669708558.7919154-3845-36368183075369/AnsiballZ_systemd.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708558.7919154-3845-36368183075369/AnsiballZ_systemd.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"name": "rpcbind", "changed": false, "status": {"Type": "notify", "Restart": "no", "NotifyAccess": "main", "RestartUSec": "100ms", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimeoutAbortUSec": "1min 30s", "TimeoutStartFailureMode": "terminate", "TimeoutStopFailureMode": "terminate", "RuntimeMaxUSec": "infinity", "WatchdogUSec": "0", "WatchdogTimestampMonotonic": "0", "RootDirectoryStartOnly": "no", "RemainAfterExit": "no", "GuessMainPID": "yes", "MainPID": "746", "ControlPID": "0", "FileDescriptorStoreMax": "0", "NFileDescriptorStore": "0", "StatusErrno": "0", "Result": "success", "ReloadResult": "success", "CleanResult": "success", "UID": "[not set]", "GID": "[not set]", "NRestarts": "0", "OOMPolicy": "stop", "ExecMainStartTimestamp": "Tue 2022-11-29 14:26:25 CST", "ExecMainStartTimestampMonotonic": "12406121", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "746", "ExecMainCode": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/bin/rpcbind ; argv[]=/usr/bin/rpcbind $RPCBIND_OPTIONS -w -f ; ignore_errors=no ; start_time=[Tue 2022-11-29 14:26:25 CST] ; stop_time=[n/a] ; pid=746 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/bin/rpcbind ; argv[]=/usr/bin/rpcbind $RPCBIND_OPTIONS -w -f ; flags= ; start_time=[Tue 2022-11-29 14:26:25 CST] ; stop_time=[n/a] ; pid=746 ; code=(null) ; status=0/0 }", "Slice": "system.slice", "ControlGroup": "/system.slice/rpcbind.service", "MemoryCurrent": "2695168", "MemoryAvailable": "infinity", "CPUUsageNSec": "[not set]", "TasksCurrent": "1", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "Delegate": "no", "CPUAccounting": "no", "CPUWeight": "[not set]", "StartupCPUWeight": "[not set]", "CPUShares": "[not set]", "StartupCPUShares": "[not set]", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "IOAccounting": "no", "IOWeight": "[not set]", "StartupIOWeight": "[not set]", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "StartupBlockIOWeight": "[not set]", "MemoryAccounting": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "MemoryMin": "0", "MemoryLow": "0", "MemoryHigh": "infinity", "MemoryMax": "infinity", "MemorySwapMax": "infinity", "MemoryLimit": "infinity", "DevicePolicy": "auto", "TasksAccounting": "yes", "TasksMax": "9211", "IPAccounting": "no", "ManagedOOMSwap": "auto", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "EnvironmentFiles": "/etc/sysconfig/rpcbind (ignore_errors=no)", "UMask": "0022", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitNPROC": "5757", "LimitNPROCSoft": "5757", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitSIGPENDING": "5757", "LimitSIGPENDINGSoft": "5757", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "OOMScoreAdjust": "0", "CoredumpFilter": "0x33", "Nice": "0", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUAffinityFromNUMA": "no", "NUMAPolicy": "n/a", "TimerSlackNSec": "50000", "CPUSchedulingResetOnFork": "no", "NonBlocking": "no", "StandardInput": "null", "StandardOutput": "journal", "StandardError": "inherit", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "SyslogPriority": "30", "SyslogLevelPrefix": "yes", "SyslogLevel": "6", "SyslogFacility": "3", "LogLevelMax": "-1", "LogRateLimitIntervalUSec": "0", "LogRateLimitBurst": "0", "SecureBits": "0", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "DynamicUser": "no", "RemoveIPC": "no", "PrivateTmp": "no", "PrivateDevices": "no", "ProtectClock": "no", "ProtectKernelTunables": "no", "ProtectKernelModules": "no", "ProtectKernelLogs": "no", "ProtectControlGroups": "no", "PrivateNetwork": "no", "PrivateUsers": "no", "PrivateMounts": "no", "PrivateIPC": "no", "ProtectHome": "no", "ProtectSystem": "no", "SameProcessGroup": "no", "UtmpMode": "init", "IgnoreSIGPIPE": "yes", "NoNewPrivileges": "no", "SystemCallErrorNumber": "2147483646", "LockPersonality": "no", "RuntimeDirectoryPreserve": "no", "RuntimeDirectoryMode": "0755", "StateDirectoryMode": "0755", "CacheDirectoryMode": "0755", "LogsDirectoryMode": "0755", "ConfigurationDirectoryMode": "0755", "TimeoutCleanUSec": "infinity", "MemoryDenyWriteExecute": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "RestrictNamespaces": "no", "MountAPIVFS": "no", "KeyringMode": "private", "ProtectProc": "default", "ProcSubset": "all", "ProtectHostname": "no", "KillMode": "control-group", "KillSignal": "15", "RestartKillSignal": "15", "FinalKillSignal": "9", "SendSIGKILL": "yes", "SendSIGHUP": "no", "WatchdogSignal": "6", "Id": "rpcbind.service", "Names": "rpcbind.service", "Requires": "-.mount rpcbind.socket system.slice", "Wants": "rpcbind.target systemd-tmpfiles-setup.service", "WantedBy": "multi-user.target", "After": "rpcbind.socket systemd-tmpfiles-setup.service -.mount system.slice systemd-journald.socket", "TriggeredBy": "rpcbind.socket", "RequiresMountsFor": "/run/rpcbind", "Documentation": "\\"man:rpcbind(8)\\"", "Description": "RPC Bind", "LoadState": "loaded", "ActiveState": "active", "FreezerState": "running", "SubState": "running", "FragmentPath": "/usr/lib/systemd/system/rpcbind.service", "UnitFileState": "enabled", "UnitFilePreset": "enabled", "StateChangeTimestamp": "Tue 2022-11-29 14:26:25 CST", "StateChangeTimestampMonotonic": "12574156", "InactiveExitTimestamp": "Tue 2022-11-29 14:26:25 CST", "InactiveExitTimestampMonotonic": "12406279", "ActiveEnterTimestamp": "Tue 2022-11-29 14:26:25 CST", "ActiveEnterTimestampMonotonic": "12574156", "ActiveExitTimestampMonotonic": "0", "InactiveEnterTimestampMonotonic": "0", "CanStart": "yes", "CanStop": "yes", "CanReload": "no", "CanIsolate": "no", "CanFreeze": "yes", "StopWhenUnneeded": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "AllowIsolate": "no", "DefaultDependencies": "no", "OnSuccesJobMode": "fail", "OnFailureJobMode": "replace", "IgnoreOnIsolate": "no", "NeedDaemonReload": "no", "JobTimeoutUSec": "infinity", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "ConditionResult": "yes", "AssertResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 14:26:25 CST", "ConditionTimestampMonotonic": "12399269", "AssertTimestamp": "Tue 2022-11-29 14:26:25 CST", "AssertTimestampMonotonic": "12399274", "Transient": "no", "Perpetual": "no", "StartLimitIntervalUSec": "10s", "StartLimitBurst": "5", "StartLimitAction": "none", "FailureAction": "none", "SuccessAction": "none", "InvocationID": "8c741a83cf854d40a4eae82039e5612a", "CollectMode": "inactive"}, "enabled": true, "state": "started", "invocation": {"module_args": {"name": "rpcbind", "state": "started", "enabled": true, "daemon_reload": false, "daemon_reexec": false, "no_block": false, "force": null, "masked": null, "user": null, "scope": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708558.7919154-3845-36368183075369/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
ok: [10.0.1.55] => {
"changed": false,
"enabled": true,
"invocation": {
"module_args": {
"daemon_reexec": false,
"daemon_reload": false,
"enabled": true,
"force": null,
"masked": null,
"name": "rpcbind",
"no_block": false,
"scope": null,
"state": "started",
"user": null
}
},
"name": "rpcbind",
"state": "started",
"status": {
"ActiveEnterTimestamp": "Tue 2022-11-29 14:26:25 CST",
"ActiveEnterTimestampMonotonic": "12574156",
"ActiveExitTimestampMonotonic": "0",
"ActiveState": "active",
"After": "rpcbind.socket systemd-tmpfiles-setup.service -.mount system.slice systemd-journald.socket",
"AllowIsolate": "no",
"AssertResult": "yes",
"AssertTimestamp": "Tue 2022-11-29 14:26:25 CST",
"AssertTimestampMonotonic": "12399274",
"BlockIOAccounting": "no",
"BlockIOWeight": "[not set]",
"CPUAccounting": "no",
"CPUAffinityFromNUMA": "no",
"CPUQuotaPerSecUSec": "infinity",
"CPUQuotaPeriodUSec": "infinity",
"CPUSchedulingPolicy": "0",
"CPUSchedulingPriority": "0",
"CPUSchedulingResetOnFork": "no",
"CPUShares": "[not set]",
"CPUUsageNSec": "[not set]",
"CPUWeight": "[not set]",
"CacheDirectoryMode": "0755",
"CanFreeze": "yes",
"CanIsolate": "no",
"CanReload": "no",
"CanStart": "yes",
"CanStop": "yes",
"CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore",
"CleanResult": "success",
"CollectMode": "inactive",
"ConditionResult": "yes",
"ConditionTimestamp": "Tue 2022-11-29 14:26:25 CST",
"ConditionTimestampMonotonic": "12399269",
"ConfigurationDirectoryMode": "0755",
"ControlGroup": "/system.slice/rpcbind.service",
"ControlPID": "0",
"CoredumpFilter": "0x33",
"DefaultDependencies": "no",
"DefaultMemoryLow": "0",
"DefaultMemoryMin": "0",
"Delegate": "no",
"Description": "RPC Bind",
"DevicePolicy": "auto",
"Documentation": "\"man:rpcbind(8)\"",
"DynamicUser": "no",
"EnvironmentFiles": "/etc/sysconfig/rpcbind (ignore_errors=no)",
"ExecMainCode": "0",
"ExecMainExitTimestampMonotonic": "0",
"ExecMainPID": "746",
"ExecMainStartTimestamp": "Tue 2022-11-29 14:26:25 CST",
"ExecMainStartTimestampMonotonic": "12406121",
"ExecMainStatus": "0",
"ExecStart": "{ path=/usr/bin/rpcbind ; argv[]=/usr/bin/rpcbind $RPCBIND_OPTIONS -w -f ; ignore_errors=no ; start_time=[Tue 2022-11-29 14:26:25 CST] ; stop_time=[n/a] ; pid=746 ; code=(null) ; status=0/0 }",
"ExecStartEx": "{ path=/usr/bin/rpcbind ; argv[]=/usr/bin/rpcbind $RPCBIND_OPTIONS -w -f ; flags= ; start_time=[Tue 2022-11-29 14:26:25 CST] ; stop_time=[n/a] ; pid=746 ; code=(null) ; status=0/0 }",
"FailureAction": "none",
"FileDescriptorStoreMax": "0",
"FinalKillSignal": "9",
"FragmentPath": "/usr/lib/systemd/system/rpcbind.service",
"FreezerState": "running",
"GID": "[not set]",
"GuessMainPID": "yes",
"IOAccounting": "no",
"IOReadBytes": "18446744073709551615",
"IOReadOperations": "18446744073709551615",
"IOSchedulingClass": "0",
"IOSchedulingPriority": "0",
"IOWeight": "[not set]",
"IOWriteBytes": "18446744073709551615",
"IOWriteOperations": "18446744073709551615",
"IPAccounting": "no",
"IPEgressBytes": "[no data]",
"IPEgressPackets": "[no data]",
"IPIngressBytes": "[no data]",
"IPIngressPackets": "[no data]",
"Id": "rpcbind.service",
"IgnoreOnIsolate": "no",
"IgnoreSIGPIPE": "yes",
"InactiveEnterTimestampMonotonic": "0",
"InactiveExitTimestamp": "Tue 2022-11-29 14:26:25 CST",
"InactiveExitTimestampMonotonic": "12406279",
"InvocationID": "8c741a83cf854d40a4eae82039e5612a",
"JobRunningTimeoutUSec": "infinity",
"JobTimeoutAction": "none",
"JobTimeoutUSec": "infinity",
"KeyringMode": "private",
"KillMode": "control-group",
"KillSignal": "15",
"LimitAS": "infinity",
"LimitASSoft": "infinity",
"LimitCORE": "infinity",
"LimitCORESoft": "infinity",
"LimitCPU": "infinity",
"LimitCPUSoft": "infinity",
"LimitDATA": "infinity",
"LimitDATASoft": "infinity",
"LimitFSIZE": "infinity",
"LimitFSIZESoft": "infinity",
"LimitLOCKS": "infinity",
"LimitLOCKSSoft": "infinity",
"LimitMEMLOCK": "65536",
"LimitMEMLOCKSoft": "65536",
"LimitMSGQUEUE": "819200",
"LimitMSGQUEUESoft": "819200",
"LimitNICE": "0",
"LimitNICESoft": "0",
"LimitNOFILE": "524288",
"LimitNOFILESoft": "1024",
"LimitNPROC": "5757",
"LimitNPROCSoft": "5757",
"LimitRSS": "infinity",
"LimitRSSSoft": "infinity",
"LimitRTPRIO": "0",
"LimitRTPRIOSoft": "0",
"LimitRTTIME": "infinity",
"LimitRTTIMESoft": "infinity",
"LimitSIGPENDING": "5757",
"LimitSIGPENDINGSoft": "5757",
"LimitSTACK": "infinity",
"LimitSTACKSoft": "8388608",
"LoadState": "loaded",
"LockPersonality": "no",
"LogLevelMax": "-1",
"LogRateLimitBurst": "0",
"LogRateLimitIntervalUSec": "0",
"LogsDirectoryMode": "0755",
"MainPID": "746",
"ManagedOOMMemoryPressure": "auto",
"ManagedOOMMemoryPressureLimit": "0",
"ManagedOOMPreference": "none",
"ManagedOOMSwap": "auto",
"MemoryAccounting": "yes",
"MemoryAvailable": "infinity",
"MemoryCurrent": "2695168",
"MemoryDenyWriteExecute": "no",
"MemoryHigh": "infinity",
"MemoryLimit": "infinity",
"MemoryLow": "0",
"MemoryMax": "infinity",
"MemoryMin": "0",
"MemorySwapMax": "infinity",
"MountAPIVFS": "no",
"NFileDescriptorStore": "0",
"NRestarts": "0",
"NUMAPolicy": "n/a",
"Names": "rpcbind.service",
"NeedDaemonReload": "no",
"Nice": "0",
"NoNewPrivileges": "no",
"NonBlocking": "no",
"NotifyAccess": "main",
"OOMPolicy": "stop",
"OOMScoreAdjust": "0",
"OnFailureJobMode": "replace",
"OnSuccesJobMode": "fail",
"Perpetual": "no",
"PrivateDevices": "no",
"PrivateIPC": "no",
"PrivateMounts": "no",
"PrivateNetwork": "no",
"PrivateTmp": "no",
"PrivateUsers": "no",
"ProcSubset": "all",
"ProtectClock": "no",
"ProtectControlGroups": "no",
"ProtectHome": "no",
"ProtectHostname": "no",
"ProtectKernelLogs": "no",
"ProtectKernelModules": "no",
"ProtectKernelTunables": "no",
"ProtectProc": "default",
"ProtectSystem": "no",
"RefuseManualStart": "no",
"RefuseManualStop": "no",
"ReloadResult": "success",
"RemainAfterExit": "no",
"RemoveIPC": "no",
"Requires": "-.mount rpcbind.socket system.slice",
"RequiresMountsFor": "/run/rpcbind",
"Restart": "no",
"RestartKillSignal": "15",
"RestartUSec": "100ms",
"RestrictNamespaces": "no",
"RestrictRealtime": "no",
"RestrictSUIDSGID": "no",
"Result": "success",
"RootDirectoryStartOnly": "no",
"RuntimeDirectoryMode": "0755",
"RuntimeDirectoryPreserve": "no",
"RuntimeMaxUSec": "infinity",
"SameProcessGroup": "no",
"SecureBits": "0",
"SendSIGHUP": "no",
"SendSIGKILL": "yes",
"Slice": "system.slice",
"StandardError": "inherit",
"StandardInput": "null",
"StandardOutput": "journal",
"StartLimitAction": "none",
"StartLimitBurst": "5",
"StartLimitIntervalUSec": "10s",
"StartupBlockIOWeight": "[not set]",
"StartupCPUShares": "[not set]",
"StartupCPUWeight": "[not set]",
"StartupIOWeight": "[not set]",
"StateChangeTimestamp": "Tue 2022-11-29 14:26:25 CST",
"StateChangeTimestampMonotonic": "12574156",
"StateDirectoryMode": "0755",
"StatusErrno": "0",
"StopWhenUnneeded": "no",
"SubState": "running",
"SuccessAction": "none",
"SyslogFacility": "3",
"SyslogLevel": "6",
"SyslogLevelPrefix": "yes",
"SyslogPriority": "30",
"SystemCallErrorNumber": "2147483646",
"TTYReset": "no",
"TTYVHangup": "no",
"TTYVTDisallocate": "no",
"TasksAccounting": "yes",
"TasksCurrent": "1",
"TasksMax": "9211",
"TimeoutAbortUSec": "1min 30s",
"TimeoutCleanUSec": "infinity",
"TimeoutStartFailureMode": "terminate",
"TimeoutStartUSec": "1min 30s",
"TimeoutStopFailureMode": "terminate",
"TimeoutStopUSec": "1min 30s",
"TimerSlackNSec": "50000",
"Transient": "no",
"TriggeredBy": "rpcbind.socket",
"Type": "notify",
"UID": "[not set]",
"UMask": "0022",
"UnitFilePreset": "enabled",
"UnitFileState": "enabled",
"UtmpMode": "init",
"WantedBy": "multi-user.target",
"Wants": "rpcbind.target systemd-tmpfiles-setup.service",
"WatchdogSignal": "6",
"WatchdogTimestampMonotonic": "0",
"WatchdogUSec": "0"
}
}
TASK [start nfs] **********************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:25
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708562.4900098-3861-90432546109901 `" && echo ansible-tmp-1669708562.4900098-3861-90432546109901="` echo /root/.ansible/tmp/ansible-tmp-1669708562.4900098-3861-90432546109901 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708562.4900098-3861-90432546109901=/root/.ansible/tmp/ansible-tmp-1669708562.4900098-3861-90432546109901\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/system/systemd.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpz9vq1vcs TO /root/.ansible/tmp/ansible-tmp-1669708562.4900098-3861-90432546109901/AnsiballZ_systemd.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpz9vq1vcs /root/.ansible/tmp/ansible-tmp-1669708562.4900098-3861-90432546109901/AnsiballZ_systemd.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708562.4900098-3861-90432546109901/ /root/.ansible/tmp/ansible-tmp-1669708562.4900098-3861-90432546109901/AnsiballZ_systemd.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708562.4900098-3861-90432546109901/AnsiballZ_systemd.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"name": "nfs", "changed": false, "status": {"Type": "oneshot", "Restart": "no", "NotifyAccess": "none", "RestartUSec": "100ms", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimeoutAbortUSec": "1min 30s", "TimeoutStartFailureMode": "terminate", "TimeoutStopFailureMode": "terminate", "RuntimeMaxUSec": "infinity", "WatchdogUSec": "0", "WatchdogTimestampMonotonic": "0", "RootDirectoryStartOnly": "no", "RemainAfterExit": "yes", "GuessMainPID": "yes", "MainPID": "0", "ControlPID": "0", "FileDescriptorStoreMax": "0", "NFileDescriptorStore": "0", "StatusErrno": "0", "Result": "success", "ReloadResult": "success", "CleanResult": "success", "UID": "[not set]", "GID": "[not set]", "NRestarts": "0", "OOMPolicy": "stop", "ExecMainStartTimestamp": "Tue 2022-11-29 14:26:28 CST", "ExecMainStartTimestampMonotonic": "15224592", "ExecMainExitTimestamp": "Tue 2022-11-29 14:26:29 CST", "ExecMainExitTimestampMonotonic": "16103256", "ExecMainPID": "919", "ExecMainCode": "1", "ExecMainStatus": "0", "ExecStartPre": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -r ; ignore_errors=yes ; start_time=[Tue 2022-11-29 14:26:28 CST] ; stop_time=[Tue 2022-11-29 14:26:28 CST] ; pid=917 ; code=exited ; status=0 }", "ExecStartPreEx": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -r ; flags=ignore-failure ; start_time=[Tue 2022-11-29 14:26:28 CST] ; stop_time=[Tue 2022-11-29 14:26:28 CST] ; pid=917 ; code=exited ; status=0 }", "ExecStart": "{ path=/usr/sbin/rpc.nfsd ; argv[]=/usr/sbin/rpc.nfsd ; ignore_errors=no ; start_time=[Tue 2022-11-29 14:26:28 CST] ; stop_time=[Tue 2022-11-29 14:26:29 CST] ; pid=919 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/usr/sbin/rpc.nfsd ; argv[]=/usr/sbin/rpc.nfsd ; flags= ; start_time=[Tue 2022-11-29 14:26:28 CST] ; stop_time=[Tue 2022-11-29 14:26:29 CST] ; pid=919 ; code=exited ; status=0 }", "ExecReload": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -r ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -r ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStop": "{ path=/usr/sbin/rpc.nfsd ; argv[]=/usr/sbin/rpc.nfsd 0 ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStopEx": "{ path=/usr/sbin/rpc.nfsd ; argv[]=/usr/sbin/rpc.nfsd 0 ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStopPost": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -f ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStopPostEx": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -f ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "Slice": "system.slice", "MemoryCurrent": "[not set]", "MemoryAvailable": "infinity", "CPUUsageNSec": "[not set]", "TasksCurrent": "[not set]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "Delegate": "no", "CPUAccounting": "no", "CPUWeight": "[not set]", "StartupCPUWeight": "[not set]", "CPUShares": "[not set]", "StartupCPUShares": "[not set]", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "IOAccounting": "no", "IOWeight": "[not set]", "StartupIOWeight": "[not set]", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "StartupBlockIOWeight": "[not set]", "MemoryAccounting": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "MemoryMin": "0", "MemoryLow": "0", "MemoryHigh": "infinity", "MemoryMax": "infinity", "MemorySwapMax": "infinity", "MemoryLimit": "infinity", "DevicePolicy": "auto", "TasksAccounting": "yes", "TasksMax": "9211", "IPAccounting": "no", "ManagedOOMSwap": "auto", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "UMask": "0022", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitNPROC": "5757", "LimitNPROCSoft": "5757", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitSIGPENDING": "5757", "LimitSIGPENDINGSoft": "5757", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "OOMScoreAdjust": "0", "CoredumpFilter": "0x33", "Nice": "0", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUAffinityFromNUMA": "no", "NUMAPolicy": "n/a", "TimerSlackNSec": "50000", "CPUSchedulingResetOnFork": "no", "NonBlocking": "no", "StandardInput": "null", "StandardOutput": "journal", "StandardError": "inherit", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "SyslogPriority": "30", "SyslogLevelPrefix": "yes", "SyslogLevel": "6", "SyslogFacility": "3", "LogLevelMax": "-1", "LogRateLimitIntervalUSec": "0", "LogRateLimitBurst": "0", "SecureBits": "0", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "DynamicUser": "no", "RemoveIPC": "no", "PrivateTmp": "no", "PrivateDevices": "no", "ProtectClock": "no", "ProtectKernelTunables": "no", "ProtectKernelModules": "no", "ProtectKernelLogs": "no", "ProtectControlGroups": "no", "PrivateNetwork": "no", "PrivateUsers": "no", "PrivateMounts": "no", "PrivateIPC": "no", "ProtectHome": "no", "ProtectSystem": "no", "SameProcessGroup": "no", "UtmpMode": "init", "IgnoreSIGPIPE": "yes", "NoNewPrivileges": "no", "SystemCallErrorNumber": "2147483646", "LockPersonality": "no", "RuntimeDirectoryPreserve": "no", "RuntimeDirectoryMode": "0755", "StateDirectoryMode": "0755", "CacheDirectoryMode": "0755", "LogsDirectoryMode": "0755", "ConfigurationDirectoryMode": "0755", "TimeoutCleanUSec": "infinity", "MemoryDenyWriteExecute": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "RestrictNamespaces": "no", "MountAPIVFS": "no", "KeyringMode": "private", "ProtectProc": "default", "ProcSubset": "all", "ProtectHostname": "no", "KillMode": "control-group", "KillSignal": "15", "RestartKillSignal": "15", "FinalKillSignal": "9", "SendSIGKILL": "yes", "SendSIGHUP": "no", "WatchdogSignal": "6", "Id": "nfs-server.service", "Names": "nfs-server.service nfs.service", "Requires": "nfs-mountd.service network.target system.slice -.mount proc-fs-nfsd.mount", "Wants": "nfsdcld.service network-online.target rpcbind.socket rpc-statd.service nfs-idmapd.service rpc-statd-notify.service auth-rpcgss-module.service", "WantedBy": "multi-user.target", "BoundBy": "nfs-idmapd.service nfs-mountd.service", "Before": "opt-tmp.mount rpc-statd-notify.service", "After": "rpc-gssd.service -.mount nfsdcld.service local-fs.target nfs-mountd.service rpcbind.socket rpc-statd.service nfs-idmapd.service proc-fs-nfsd.mount system.slice network-online.target gssproxy.service systemd-journald.socket rpc-svcgssd.service", "RequiresMountsFor": "/opt/nfs/data", "Description": "NFS server and services", "LoadState": "loaded", "ActiveState": "active", "FreezerState": "running", "SubState": "exited", "FragmentPath": "/usr/lib/systemd/system/nfs-server.service", "DropInPaths": "/run/systemd/generator/nfs-server.service.d/order-with-mounts.conf", "UnitFileState": "enabled", "UnitFilePreset": "disabled", "StateChangeTimestamp": "Tue 2022-11-29 14:26:29 CST", "StateChangeTimestampMonotonic": "16103846", "InactiveExitTimestamp": "Tue 2022-11-29 14:26:28 CST", "InactiveExitTimestampMonotonic": "15206892", "ActiveEnterTimestamp": "Tue 2022-11-29 14:26:29 CST", "ActiveEnterTimestampMonotonic": "16103846", "ActiveExitTimestampMonotonic": "0", "InactiveEnterTimestampMonotonic": "0", "CanStart": "yes", "CanStop": "yes", "CanReload": "yes", "CanIsolate": "no", "CanFreeze": "yes", "StopWhenUnneeded": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "AllowIsolate": "no", "DefaultDependencies": "no", "OnSuccesJobMode": "fail", "OnFailureJobMode": "replace", "IgnoreOnIsolate": "no", "NeedDaemonReload": "no", "JobTimeoutUSec": "infinity", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "ConditionResult": "yes", "AssertResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 14:26:28 CST", "ConditionTimestampMonotonic": "15179870", "AssertTimestamp": "Tue 2022-11-29 14:26:28 CST", "AssertTimestampMonotonic": "15179875", "Transient": "no", "Perpetual": "no", "StartLimitIntervalUSec": "10s", "StartLimitBurst": "5", "StartLimitAction": "none", "FailureAction": "none", "SuccessAction": "none", "InvocationID": "694ab344e81447358b8b1d57faddb3e4", "CollectMode": "inactive"}, "enabled": true, "state": "started", "invocation": {"module_args": {"name": "nfs", "state": "started", "enabled": true, "daemon_reload": false, "daemon_reexec": false, "no_block": false, "force": null, "masked": null, "user": null, "scope": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708562.4900098-3861-90432546109901/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
ok: [10.0.1.55] => {
"changed": false,
"enabled": true,
"invocation": {
"module_args": {
"daemon_reexec": false,
"daemon_reload": false,
"enabled": true,
"force": null,
"masked": null,
"name": "nfs",
"no_block": false,
"scope": null,
"state": "started",
"user": null
}
},
"name": "nfs",
"state": "started",
"status": {
"ActiveEnterTimestamp": "Tue 2022-11-29 14:26:29 CST",
"ActiveEnterTimestampMonotonic": "16103846",
"ActiveExitTimestampMonotonic": "0",
"ActiveState": "active",
"After": "rpc-gssd.service -.mount nfsdcld.service local-fs.target nfs-mountd.service rpcbind.socket rpc-statd.service nfs-idmapd.service proc-fs-nfsd.mount system.slice network-online.target gssproxy.service systemd-journald.socket rpc-svcgssd.service",
"AllowIsolate": "no",
"AssertResult": "yes",
"AssertTimestamp": "Tue 2022-11-29 14:26:28 CST",
"AssertTimestampMonotonic": "15179875",
"Before": "opt-tmp.mount rpc-statd-notify.service",
"BlockIOAccounting": "no",
"BlockIOWeight": "[not set]",
"BoundBy": "nfs-idmapd.service nfs-mountd.service",
"CPUAccounting": "no",
"CPUAffinityFromNUMA": "no",
"CPUQuotaPerSecUSec": "infinity",
"CPUQuotaPeriodUSec": "infinity",
"CPUSchedulingPolicy": "0",
"CPUSchedulingPriority": "0",
"CPUSchedulingResetOnFork": "no",
"CPUShares": "[not set]",
"CPUUsageNSec": "[not set]",
"CPUWeight": "[not set]",
"CacheDirectoryMode": "0755",
"CanFreeze": "yes",
"CanIsolate": "no",
"CanReload": "yes",
"CanStart": "yes",
"CanStop": "yes",
"CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore",
"CleanResult": "success",
"CollectMode": "inactive",
"ConditionResult": "yes",
"ConditionTimestamp": "Tue 2022-11-29 14:26:28 CST",
"ConditionTimestampMonotonic": "15179870",
"ConfigurationDirectoryMode": "0755",
"ControlPID": "0",
"CoredumpFilter": "0x33",
"DefaultDependencies": "no",
"DefaultMemoryLow": "0",
"DefaultMemoryMin": "0",
"Delegate": "no",
"Description": "NFS server and services",
"DevicePolicy": "auto",
"DropInPaths": "/run/systemd/generator/nfs-server.service.d/order-with-mounts.conf",
"DynamicUser": "no",
"ExecMainCode": "1",
"ExecMainExitTimestamp": "Tue 2022-11-29 14:26:29 CST",
"ExecMainExitTimestampMonotonic": "16103256",
"ExecMainPID": "919",
"ExecMainStartTimestamp": "Tue 2022-11-29 14:26:28 CST",
"ExecMainStartTimestampMonotonic": "15224592",
"ExecMainStatus": "0",
"ExecReload": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -r ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecReloadEx": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -r ; flags=ignore-failure ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecStart": "{ path=/usr/sbin/rpc.nfsd ; argv[]=/usr/sbin/rpc.nfsd ; ignore_errors=no ; start_time=[Tue 2022-11-29 14:26:28 CST] ; stop_time=[Tue 2022-11-29 14:26:29 CST] ; pid=919 ; code=exited ; status=0 }",
"ExecStartEx": "{ path=/usr/sbin/rpc.nfsd ; argv[]=/usr/sbin/rpc.nfsd ; flags= ; start_time=[Tue 2022-11-29 14:26:28 CST] ; stop_time=[Tue 2022-11-29 14:26:29 CST] ; pid=919 ; code=exited ; status=0 }",
"ExecStartPre": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -r ; ignore_errors=yes ; start_time=[Tue 2022-11-29 14:26:28 CST] ; stop_time=[Tue 2022-11-29 14:26:28 CST] ; pid=917 ; code=exited ; status=0 }",
"ExecStartPreEx": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -r ; flags=ignore-failure ; start_time=[Tue 2022-11-29 14:26:28 CST] ; stop_time=[Tue 2022-11-29 14:26:28 CST] ; pid=917 ; code=exited ; status=0 }",
"ExecStop": "{ path=/usr/sbin/rpc.nfsd ; argv[]=/usr/sbin/rpc.nfsd 0 ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecStopEx": "{ path=/usr/sbin/rpc.nfsd ; argv[]=/usr/sbin/rpc.nfsd 0 ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecStopPost": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -f ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecStopPostEx": "{ path=/usr/sbin/exportfs ; argv[]=/usr/sbin/exportfs -f ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"FailureAction": "none",
"FileDescriptorStoreMax": "0",
"FinalKillSignal": "9",
"FragmentPath": "/usr/lib/systemd/system/nfs-server.service",
"FreezerState": "running",
"GID": "[not set]",
"GuessMainPID": "yes",
"IOAccounting": "no",
"IOReadBytes": "18446744073709551615",
"IOReadOperations": "18446744073709551615",
"IOSchedulingClass": "0",
"IOSchedulingPriority": "0",
"IOWeight": "[not set]",
"IOWriteBytes": "18446744073709551615",
"IOWriteOperations": "18446744073709551615",
"IPAccounting": "no",
"IPEgressBytes": "[no data]",
"IPEgressPackets": "[no data]",
"IPIngressBytes": "[no data]",
"IPIngressPackets": "[no data]",
"Id": "nfs-server.service",
"IgnoreOnIsolate": "no",
"IgnoreSIGPIPE": "yes",
"InactiveEnterTimestampMonotonic": "0",
"InactiveExitTimestamp": "Tue 2022-11-29 14:26:28 CST",
"InactiveExitTimestampMonotonic": "15206892",
"InvocationID": "694ab344e81447358b8b1d57faddb3e4",
"JobRunningTimeoutUSec": "infinity",
"JobTimeoutAction": "none",
"JobTimeoutUSec": "infinity",
"KeyringMode": "private",
"KillMode": "control-group",
"KillSignal": "15",
"LimitAS": "infinity",
"LimitASSoft": "infinity",
"LimitCORE": "infinity",
"LimitCORESoft": "infinity",
"LimitCPU": "infinity",
"LimitCPUSoft": "infinity",
"LimitDATA": "infinity",
"LimitDATASoft": "infinity",
"LimitFSIZE": "infinity",
"LimitFSIZESoft": "infinity",
"LimitLOCKS": "infinity",
"LimitLOCKSSoft": "infinity",
"LimitMEMLOCK": "65536",
"LimitMEMLOCKSoft": "65536",
"LimitMSGQUEUE": "819200",
"LimitMSGQUEUESoft": "819200",
"LimitNICE": "0",
"LimitNICESoft": "0",
"LimitNOFILE": "524288",
"LimitNOFILESoft": "1024",
"LimitNPROC": "5757",
"LimitNPROCSoft": "5757",
"LimitRSS": "infinity",
"LimitRSSSoft": "infinity",
"LimitRTPRIO": "0",
"LimitRTPRIOSoft": "0",
"LimitRTTIME": "infinity",
"LimitRTTIMESoft": "infinity",
"LimitSIGPENDING": "5757",
"LimitSIGPENDINGSoft": "5757",
"LimitSTACK": "infinity",
"LimitSTACKSoft": "8388608",
"LoadState": "loaded",
"LockPersonality": "no",
"LogLevelMax": "-1",
"LogRateLimitBurst": "0",
"LogRateLimitIntervalUSec": "0",
"LogsDirectoryMode": "0755",
"MainPID": "0",
"ManagedOOMMemoryPressure": "auto",
"ManagedOOMMemoryPressureLimit": "0",
"ManagedOOMPreference": "none",
"ManagedOOMSwap": "auto",
"MemoryAccounting": "yes",
"MemoryAvailable": "infinity",
"MemoryCurrent": "[not set]",
"MemoryDenyWriteExecute": "no",
"MemoryHigh": "infinity",
"MemoryLimit": "infinity",
"MemoryLow": "0",
"MemoryMax": "infinity",
"MemoryMin": "0",
"MemorySwapMax": "infinity",
"MountAPIVFS": "no",
"NFileDescriptorStore": "0",
"NRestarts": "0",
"NUMAPolicy": "n/a",
"Names": "nfs-server.service nfs.service",
"NeedDaemonReload": "no",
"Nice": "0",
"NoNewPrivileges": "no",
"NonBlocking": "no",
"NotifyAccess": "none",
"OOMPolicy": "stop",
"OOMScoreAdjust": "0",
"OnFailureJobMode": "replace",
"OnSuccesJobMode": "fail",
"Perpetual": "no",
"PrivateDevices": "no",
"PrivateIPC": "no",
"PrivateMounts": "no",
"PrivateNetwork": "no",
"PrivateTmp": "no",
"PrivateUsers": "no",
"ProcSubset": "all",
"ProtectClock": "no",
"ProtectControlGroups": "no",
"ProtectHome": "no",
"ProtectHostname": "no",
"ProtectKernelLogs": "no",
"ProtectKernelModules": "no",
"ProtectKernelTunables": "no",
"ProtectProc": "default",
"ProtectSystem": "no",
"RefuseManualStart": "no",
"RefuseManualStop": "no",
"ReloadResult": "success",
"RemainAfterExit": "yes",
"RemoveIPC": "no",
"Requires": "nfs-mountd.service network.target system.slice -.mount proc-fs-nfsd.mount",
"RequiresMountsFor": "/opt/nfs/data",
"Restart": "no",
"RestartKillSignal": "15",
"RestartUSec": "100ms",
"RestrictNamespaces": "no",
"RestrictRealtime": "no",
"RestrictSUIDSGID": "no",
"Result": "success",
"RootDirectoryStartOnly": "no",
"RuntimeDirectoryMode": "0755",
"RuntimeDirectoryPreserve": "no",
"RuntimeMaxUSec": "infinity",
"SameProcessGroup": "no",
"SecureBits": "0",
"SendSIGHUP": "no",
"SendSIGKILL": "yes",
"Slice": "system.slice",
"StandardError": "inherit",
"StandardInput": "null",
"StandardOutput": "journal",
"StartLimitAction": "none",
"StartLimitBurst": "5",
"StartLimitIntervalUSec": "10s",
"StartupBlockIOWeight": "[not set]",
"StartupCPUShares": "[not set]",
"StartupCPUWeight": "[not set]",
"StartupIOWeight": "[not set]",
"StateChangeTimestamp": "Tue 2022-11-29 14:26:29 CST",
"StateChangeTimestampMonotonic": "16103846",
"StateDirectoryMode": "0755",
"StatusErrno": "0",
"StopWhenUnneeded": "no",
"SubState": "exited",
"SuccessAction": "none",
"SyslogFacility": "3",
"SyslogLevel": "6",
"SyslogLevelPrefix": "yes",
"SyslogPriority": "30",
"SystemCallErrorNumber": "2147483646",
"TTYReset": "no",
"TTYVHangup": "no",
"TTYVTDisallocate": "no",
"TasksAccounting": "yes",
"TasksCurrent": "[not set]",
"TasksMax": "9211",
"TimeoutAbortUSec": "1min 30s",
"TimeoutCleanUSec": "infinity",
"TimeoutStartFailureMode": "terminate",
"TimeoutStartUSec": "infinity",
"TimeoutStopFailureMode": "terminate",
"TimeoutStopUSec": "1min 30s",
"TimerSlackNSec": "50000",
"Transient": "no",
"Type": "oneshot",
"UID": "[not set]",
"UMask": "0022",
"UnitFilePreset": "disabled",
"UnitFileState": "enabled",
"UtmpMode": "init",
"WantedBy": "multi-user.target",
"Wants": "nfsdcld.service network-online.target rpcbind.socket rpc-statd.service nfs-idmapd.service rpc-statd-notify.service auth-rpcgss-module.service",
"WatchdogSignal": "6",
"WatchdogTimestampMonotonic": "0",
"WatchdogUSec": "0"
}
}
TASK [mount local] ********************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:27
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708565.694708-3877-22481285426063 `" && echo ansible-tmp-1669708565.694708-3877-22481285426063="` echo /root/.ansible/tmp/ansible-tmp-1669708565.694708-3877-22481285426063 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708565.694708-3877-22481285426063=/root/.ansible/tmp/ansible-tmp-1669708565.694708-3877-22481285426063\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/system/mount.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmplu6d1dn5 TO /root/.ansible/tmp/ansible-tmp-1669708565.694708-3877-22481285426063/AnsiballZ_mount.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmplu6d1dn5 /root/.ansible/tmp/ansible-tmp-1669708565.694708-3877-22481285426063/AnsiballZ_mount.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708565.694708-3877-22481285426063/ /root/.ansible/tmp/ansible-tmp-1669708565.694708-3877-22481285426063/AnsiballZ_mount.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708565.694708-3877-22481285426063/AnsiballZ_mount.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"changed": true, "name": "/opt/tmp", "opts": "defaults", "dump": "0", "passno": "0", "fstab": "/etc/fstab", "src": "10.0.1.55:/opt/nfs/data", "fstype": "nfs", "invocation": {"module_args": {"src": "10.0.1.55:/opt/nfs/data", "path": "/opt/tmp", "fstype": "nfs", "state": "mounted", "boot": true, "backup": false, "dump": null, "fstab": null, "opts": null, "passno": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708565.694708-3877-22481285426063/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
changed: [10.0.1.55] => {
"changed": true,
"dump": "0",
"fstab": "/etc/fstab",
"fstype": "nfs",
"invocation": {
"module_args": {
"backup": false,
"boot": true,
"dump": null,
"fstab": null,
"fstype": "nfs",
"opts": null,
"passno": null,
"path": "/opt/tmp",
"src": "10.0.1.55:/opt/nfs/data",
"state": "mounted"
}
},
"name": "/opt/tmp",
"opts": "defaults",
"passno": "0",
"src": "10.0.1.55:/opt/nfs/data"
}
TASK [create file 1~10.txt] ***********************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:29
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708567.925764-3893-90728187074276 `" && echo ansible-tmp-1669708567.925764-3893-90728187074276="` echo /root/.ansible/tmp/ansible-tmp-1669708567.925764-3893-90728187074276 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708567.925764-3893-90728187074276=/root/.ansible/tmp/ansible-tmp-1669708567.925764-3893-90728187074276\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/commands/command.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpod1u32ux TO /root/.ansible/tmp/ansible-tmp-1669708567.925764-3893-90728187074276/AnsiballZ_command.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmpod1u32ux /root/.ansible/tmp/ansible-tmp-1669708567.925764-3893-90728187074276/AnsiballZ_command.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708567.925764-3893-90728187074276/ /root/.ansible/tmp/ansible-tmp-1669708567.925764-3893-90728187074276/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708567.925764-3893-90728187074276/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"cmd": "touch /opt/tmp/cici-{1..10}.txt", "stdout": "", "stderr": "", "rc": 0, "start": "2022-11-29 15:56:09.280343", "end": "2022-11-29 15:56:09.333416", "delta": "0:00:00.053073", "changed": true, "invocation": {"module_args": {"_raw_params": "touch /opt/tmp/cici-{1..10}.txt", "_uses_shell": true, "warn": true, "stdin_add_newline": true, "strip_empty_ends": true, "argv": null, "chdir": null, "executable": null, "creates": null, "removes": null, "stdin": null}}, "warnings": ["Consider using the file module with state=touch rather than running \'touch\'. If you need to use command because file is insufficient you can add \'warn: false\' to this command task or set \'command_warnings=False\' in ansible.cfg to get rid of this message."]}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708567.925764-3893-90728187074276/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
[WARNING]: Consider using the file module with state=touch rather than running 'touch'. If you need to use command because file is insufficient you can add 'warn: false'
to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
changed: [10.0.1.55] => {
"changed": true,
"cmd": "touch /opt/tmp/cici-{1..10}.txt",
"delta": "0:00:00.053073",
"end": "2022-11-29 15:56:09.333416",
"invocation": {
"module_args": {
"_raw_params": "touch /opt/tmp/cici-{1..10}.txt",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"rc": 0,
"start": "2022-11-29 15:56:09.280343",
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []
}
TASK [find data] **********************************************************************************************************************************************************
task path: /opt/ansible/playbook/nfs/install-nfs.yaml:31
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.0.1.55> (0, b'/root\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1669708569.8485386-3909-100979646721791 `" && echo ansible-tmp-1669708569.8485386-3909-100979646721791="` echo /root/.ansible/tmp/ansible-tmp-1669708569.8485386-3909-100979646721791 `" ) && sleep 0'"'"''
<10.0.1.55> (0, b'ansible-tmp-1669708569.8485386-3909-100979646721791=/root/.ansible/tmp/ansible-tmp-1669708569.8485386-3909-100979646721791\n', b'')
Using module file /usr/lib/python3.10/site-packages/ansible/modules/commands/command.py
<10.0.1.55> PUT /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp4uldxxmv TO /root/.ansible/tmp/ansible-tmp-1669708569.8485386-3909-100979646721791/AnsiballZ_command.py
<10.0.1.55> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f '[10.0.1.55]'
<10.0.1.55> (0, b'sftp> put /root/.ansible/tmp/ansible-local-3684o9wuo01o/tmp4uldxxmv /root/.ansible/tmp/ansible-tmp-1669708569.8485386-3909-100979646721791/AnsiballZ_command.py\n', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1669708569.8485386-3909-100979646721791/ /root/.ansible/tmp/ansible-tmp-1669708569.8485386-3909-100979646721791/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f -tt 10.0.1.55 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1669708569.8485386-3909-100979646721791/AnsiballZ_command.py && sleep 0'"'"''
<10.0.1.55> (0, b'\r\n{"cmd": ["ls", "-l", "/opt/nfs/data"], "stdout": "total 0\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-10.txt\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-1.txt\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-2.txt\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-3.txt\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-4.txt\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-5.txt\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-6.txt\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-7.txt\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-8.txt\\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-9.txt", "stderr": "", "rc": 0, "start": "2022-11-29 15:56:11.182659", "end": "2022-11-29 15:56:11.190047", "delta": "0:00:00.007388", "changed": true, "invocation": {"module_args": {"_raw_params": "ls -l /opt/nfs/data", "warn": true, "_uses_shell": false, "stdin_add_newline": true, "strip_empty_ends": true, "argv": null, "chdir": null, "executable": null, "creates": null, "removes": null, "stdin": null}}}\r\n', b'Shared connection to 10.0.1.55 closed.\r\n')
<10.0.1.55> ESTABLISH SSH CONNECTION FOR USER: root
<10.0.1.55> SSH: EXEC sshpass -d11 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/b09931bc2f 10.0.1.55 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1669708569.8485386-3909-100979646721791/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.1.55> (0, b'', b'')
changed: [10.0.1.55] => {
"changed": true,
"cmd": [
"ls",
"-l",
"/opt/nfs/data"
],
"delta": "0:00:00.007388",
"end": "2022-11-29 15:56:11.190047",
"invocation": {
"module_args": {
"_raw_params": "ls -l /opt/nfs/data",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"rc": 0,
"start": "2022-11-29 15:56:11.182659",
"stderr": "",
"stderr_lines": [],
"stdout": "total 0\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-10.txt\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-1.txt\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-2.txt\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-3.txt\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-4.txt\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-5.txt\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-6.txt\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-7.txt\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-8.txt\n-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-9.txt",
"stdout_lines": [
"total 0",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-10.txt",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-1.txt",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-2.txt",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-3.txt",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-4.txt",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-5.txt",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-6.txt",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-7.txt",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-8.txt",
"-rw-r--r-- 1 iyuyixyz cici 0 Nov 29 15:56 cici-9.txt"
]
}
META: ran handlers
META: ran handlers
PLAY RECAP ****************************************************************************************************************************************************************
10.0.1.55 : ok=14 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Y、Error message
Z、Related Links
Ansible-2.9.27 modular Use on openEuler:https://www.cnblogs.com/huaxiayuyi/p/16929863.html