ansible all -m setup -a 'filter=”**”'
ansible-vault encrypt locker.yml (进行加密)
ansible-vault rekey --ask-vault-pass salaries.yml
- name: one
group:
name: devops (建立组)
regexp: "^{{ item.hw_name }}" (^以谁开头) (item.调用子变量)
---
- hosts: all
vars:
selinux_policy: targeted
selinux_state: enforcing