0bb4232586
We want to launch a new bastion host to run ansible on. Because we're working on the transition to ansible, it seems like being able to do that without needing puppet would be nice. This gets user management, base repo setup and whatnot installed. It doesn't remove them from the existing puppet, nor does it change the way we're calling anything that currently exists. Add bridge.openstack.org to the disabled group so that we don't try to run puppet on it. Change-Id: I3165423753009c639d9d2e2ed7d9adbe70360932
19 lines
462 B
YAML
19 lines
462 B
YAML
---
|
|
- name: Remove cloud-init
|
|
package:
|
|
name: cloud-init
|
|
state: absent
|
|
|
|
# Set hostname and /etc/hosts
|
|
# Inspired by:
|
|
# https://github.com/ansible/ansible/pull/8482)
|
|
# https://gist.github.com/rothgar/8793800
|
|
- name: Set /etc/hostname
|
|
hostname: name="{{ inventory_hostname.split('.', 1)[0] }}"
|
|
|
|
- name: Set /etc/hosts
|
|
template: src=hosts.j2 dest=/etc/hosts mode=0644
|
|
|
|
- name: Set /etc/mailname
|
|
template: src=mailname.j2 dest=/etc/mailname mode=0644
|