随笔分类 - ansible
摘要:- hosts: localhost gather_facts: False user: root tasks: #清理旧key - name: clean old key file: path: /root/.ssh/ state: absent #生成新的key - name: ssh-gen-
阅读全文
摘要:- hosts: k8s-cluster any_errors_fatal: "{{ any_errors_fatal | default(true) }}" vars: dns_domain: cluster.local tasks: - name: populate inventory into
阅读全文
摘要:- hosts: all any_errors_fatal: "{{ any_errors_fatal | default(true) }}" tasks: - name: yum install ntp yum: name: ntp state: present tags: - install_n
阅读全文

浙公网安备 33010602011771号