Skip to content
Snippets Groups Projects
Commit 5176e5c9 authored by Alexander Block's avatar Alexander Block
Browse files

Make growpart only run on Azure

parent 42ea4d2c
No related branches found
No related tags found
No related merge requests found
--- ---
# Running growpart seems to be only required on Azure, as other Cloud Providers do this at boot time
- name: install growpart - name: install growpart
package: name=cloud-utils-growpart state=latest package: name=cloud-utils-growpart state=latest
......
...@@ -181,8 +181,14 @@ ...@@ -181,8 +181,14 @@
- include: resolvconf.yml - include: resolvconf.yml
tags: [bootstrap-os, resolvconf] tags: [bootstrap-os, resolvconf]
- include: growpart-centos-7.yml - name: Check if we are running inside a Azure VM
when: ansible_distribution in ["CentOS","RedHat"] and stat: path=/var/lib/waagent/
register: azure_check
tags: bootstrap-os
- include: growpart-azure-centos-7.yml
when: azure_check.stat.exists and
ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >= 7 ansible_distribution_major_version >= 7
tags: bootstrap-os tags: bootstrap-os
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment