diff options
author | Jun Li <matthew.lijun@huawei.com> | 2017-03-21 02:00:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-21 02:00:23 +0000 |
commit | 054bbbde0e367c88af8b8f3b0c4d85d019dc7d67 (patch) | |
tree | 398b0a4d521544646e5cbd6f38c826ab9f6b9583 /prototypes/openstack-ansible/playbooks/targethost_configuration.yml | |
parent | a50c482ac46d62e5a7c5c06915e3b3d1014747ff (diff) | |
parent | 6617ea710dd4fbfa2ef39cb184a5f36f61d36ffd (diff) |
Merge "prototypes: fix yamllint issues"
Diffstat (limited to 'prototypes/openstack-ansible/playbooks/targethost_configuration.yml')
-rw-r--r-- | prototypes/openstack-ansible/playbooks/targethost_configuration.yml | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/prototypes/openstack-ansible/playbooks/targethost_configuration.yml b/prototypes/openstack-ansible/playbooks/targethost_configuration.yml index ffe788f0e..1f4ad063e 100644 --- a/prototypes/openstack-ansible/playbooks/targethost_configuration.yml +++ b/prototypes/openstack-ansible/playbooks/targethost_configuration.yml @@ -4,26 +4,26 @@ vars_files: - ../var/ubuntu.yml tasks: - - name: add public key to host - copy: - src: ../file/authorized_keys - dest: /root/.ssh/authorized_keys - - name: configure modules - copy: - src: ../file/modules - dest: /etc/modules + - name: add public key to host + copy: + src: ../file/authorized_keys + dest: /root/.ssh/authorized_keys + - name: configure modules + copy: + src: ../file/modules + dest: /etc/modules - hosts: controller remote_user: root vars_files: - ../var/ubuntu.yml tasks: - - name: configure network - template: - src: ../template/bifrost/controller.interface.j2 - dest: /etc/network/interfaces - notify: - - restart network service + - name: configure network + template: + src: ../template/bifrost/controller.interface.j2 + dest: /etc/network/interfaces + notify: + - restart network service handlers: - name: restart network service shell: "/sbin/ifconfig ens3 0 &&/sbin/ifdown -a && /sbin/ifup -a" @@ -33,12 +33,12 @@ vars_files: - ../var/ubuntu.yml tasks: - - name: configure network - template: - src: ../template/bifrost/compute.interface.j2 - dest: /etc/network/interfaces - notify: - - restart network service + - name: configure network + template: + src: ../template/bifrost/compute.interface.j2 + dest: /etc/network/interfaces + notify: + - restart network service handlers: - name: restart network service shell: "/sbin/ifconfig ens3 0 &&/sbin/ifdown -a && /sbin/ifup -a" @@ -46,16 +46,16 @@ - hosts: compute01 remote_user: root tasks: - - name: make nfs dir - file: "dest=/images mode=777 state=directory" - - name: configure sdrvice - shell: "echo 'nfs 2049/tcp' >> /etc/services && echo 'nfs 2049/udp' >> /etc/services" - - name: configure NFS - copy: - src: ../file/exports - dest: /etc/exports - notify: - - restart nfs service + - name: make nfs dir + file: "dest=/images mode=777 state=directory" + - name: configure sdrvice + shell: "echo 'nfs 2049/tcp' >> /etc/services && echo 'nfs 2049/udp' >> /etc/services" + - name: configure NFS + copy: + src: ../file/exports + dest: /etc/exports + notify: + - restart nfs service handlers: - name: restart nfs service service: name=nfs-kernel-server state=restarted |