Skip to content

Commit

Permalink
gather_facts -> changed in newer ansible versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ReSearchITEng authored Apr 10, 2019
1 parent 68f8944 commit 7991a3f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Preparations
## Making sure python exists on all nodes, so Ansible will be able to run:
- hosts: all
gather_facts: False
gather_facts: no
become: yes
become_method: sudo
pre_tasks:
Expand All @@ -23,7 +23,6 @@

## proper reset of any previous cluster (if any)
- hosts: master
gather_facts: smart
become: yes
become_method: sudo
tags:
Expand All @@ -38,7 +37,6 @@

## nodes -> reset and install common part (for all nodes)
- hosts: node
gather_facts: smart
become: yes
become_method: sudo
tags:
Expand All @@ -50,7 +48,6 @@

## etcd -> reset and install common part (for all etcds, when not in the same group with master)
- hosts: etcd
gather_facts: smart
become: yes
become_method: sudo
tags:
Expand All @@ -62,7 +59,6 @@

## master -> reset and install common part (for all masters - and sometimes etcd when colocated with masters)
- hosts: master
gather_facts: smart
become: yes
become_method: sudo
tags:
Expand All @@ -74,7 +70,6 @@

## etcd -> install etcd (when HA)
- hosts: etcd
gather_facts: all # smart
become: yes
become_method: sudo
any_errors_fatal: yes
Expand All @@ -88,7 +83,6 @@

## master -> install keepalived and deploy etcd client certs on masters (relevat if HA)
- hosts: master
gather_facts: all # smart
become: yes
become_method: sudo
any_errors_fatal: yes
Expand All @@ -102,7 +96,6 @@

- hosts: primary-master
name: (or master in general; applies to both ha and non-ha)
gather_facts: all # smart
become: yes
become_method: sudo
tags:
Expand All @@ -112,7 +105,6 @@
- { role: master, tags: [ 'primary-master', 'master', 'install', 'master_install'] }

- hosts: secondary-masters
gather_facts: all # smart
become: yes
become_method: sudo
tags:
Expand All @@ -124,15 +116,13 @@

## node -> install nodes (kubeadm join, etc)
- hosts: node
gather_facts: smart
become: yes
become_method: sudo
roles:
- { role: node, tags: [ 'node', 'install', 'node_install'], when: "inventory_hostname not in groups['master']" }

## Post deploy (network, storage, helm installation, helm charts deploy, any other addons)
- hosts: primary-master
gather_facts: smart
become: yes
become_method: sudo
tags:
Expand All @@ -144,7 +134,6 @@

## Generic Sanity
- hosts: master
gather_facts: smart
become: yes
become_method: sudo
tags:
Expand Down

0 comments on commit 7991a3f

Please sign in to comment.