随笔分类 -  ansible

摘要:- hosts: localhost gather_facts: False user: root tasks: #清理旧key - name: clean old key file: path: /root/.ssh/ state: absent #生成新的key - name: ssh-gen- 阅读全文
posted @ 2020-09-22 10:52 Ethan.Sun 阅读(240) 评论(0) 推荐(0)
摘要:- hosts: k8s-cluster any_errors_fatal: "{{ any_errors_fatal | default(true) }}" vars: dns_domain: cluster.local tasks: - name: populate inventory into 阅读全文
posted @ 2020-07-07 15:00 Ethan.Sun 阅读(1268) 评论(0) 推荐(0)
摘要:- hosts: all any_errors_fatal: "{{ any_errors_fatal | default(true) }}" tasks: - name: yum install ntp yum: name: ntp state: present tags: - install_n 阅读全文
posted @ 2020-07-07 14:57 Ethan.Sun 阅读(1736) 评论(0) 推荐(1)