Skip to content

Instantly share code, notes, and snippets.

@kjelly
Created November 23, 2017 01:35
Show Gist options
  • Save kjelly/93928be36876a1f54ac8d9e6bce12d59 to your computer and use it in GitHub Desktop.
Save kjelly/93928be36876a1f54ac8d9e6bce12d59 to your computer and use it in GitHub Desktop.
- name: prepare kolla
hosts: "all"
tasks:
- name: remove "localdomain" from hostname
lineinfile: path=/etc/hostname regexp='^(.+)\.localdomain$' line="\1" backrefs=yes
become: yes
ansible-playbook -e@/kolla-ansible/ansible/group_vars/all.yml -e@/etc/kolla/globals.yml -i /etc/kolla-ansible-docker/inventory remove-localdomain.yml $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment