Clean up some more old syntax
This commit is contained in:
parent
a97ce78813
commit
136866729f
3 changed files with 16 additions and 16 deletions
|
@ -37,8 +37,8 @@ be used in specific cases where a generic group playbook would not work.
|
||||||
Both groups and hosts playbooks should always include:
|
Both groups and hosts playbooks should always include:
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- ${private}/vars.yml
|
- "{{ private}}/vars.yml"
|
||||||
- ${vars}/${ansible_distribution}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
Play naming
|
Play naming
|
||||||
===========
|
===========
|
||||||
|
|
12
README
12
README
|
@ -143,10 +143,10 @@ The available images can be found by running::
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- ${private}/vars.yml
|
- "{{ private }}/vars.yml"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: $tasks/persistent_cloud.yml
|
- include: "{{ tasks }}/persistent_cloud.yml"
|
||||||
|
|
||||||
- name: provision instance
|
- name: provision instance
|
||||||
hosts: $YOUR_HOSTNAME/IP HERE
|
hosts: $YOUR_HOSTNAME/IP HERE
|
||||||
|
@ -155,15 +155,15 @@ The available images can be found by running::
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- ${private}/vars.yml
|
- "{{ private }}/vars.yml"
|
||||||
- ${vars}/${ansible_distribution}.yml
|
- /srv/web/infra/ansible/vars//{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: $tasks/cloud_setup_basic.yml
|
- include: "{{ tasks }}/cloud_setup_basic.yml
|
||||||
# fill in other actions/includes/etc here
|
# fill in other actions/includes/etc here
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: $handlers/restart_services.yml
|
- include: "{{ handlers }}/restart_services.yml
|
||||||
|
|
||||||
|
|
||||||
5. add/commit the above to the git repo and push your changes
|
5. add/commit the above to the git repo and push your changes
|
||||||
|
|
|
@ -33,27 +33,27 @@
|
||||||
file: path={{ rpmdir }}-old state=directory
|
file: path={{ rpmdir }}-old state=directory
|
||||||
|
|
||||||
- name: copy the source rpms to the SRPMS dir
|
- name: copy the source rpms to the SRPMS dir
|
||||||
copy: src=${item} dest=${repodir}/SRPMS/
|
copy: src={{ item }} dest={{ repodir }}/SRPMS/
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ rpmdir }}/*.src.rpm"
|
- "{{ rpmdir }}/*.src.rpm"
|
||||||
|
|
||||||
- name: Run createrepo on the srpm dir
|
- name: Run createrepo on the srpm dir
|
||||||
command: createrepo --update ${repodir}/SRPMS/
|
command: createrepo --update {{ repodir }}/SRPMS/
|
||||||
|
|
||||||
- name: move processed srpms out to ${rpmdir}-old
|
- name: move processed srpms out to {{ rpmdir }}-old
|
||||||
command: /bin/mv ${item} ${rpmdir}-old/
|
command: /bin/mv {{ item }} {{ rpmdir }}-old/
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ rpmdir }}/*.src.rpm"
|
- "{{ rpmdir }}/*.src.rpm"
|
||||||
|
|
||||||
- name: copy the binary rpms to the x86_64 dir
|
- name: copy the binary rpms to the x86_64 dir
|
||||||
copy: src=${item} dest=${repodir}/x86_64/
|
copy: src={{ item }} dest={{ repodir }}/x86_64/
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ rpmdir }}/*.rpm"
|
- "{{ rpmdir }}/*.rpm"
|
||||||
|
|
||||||
- name: Run createrepo on the x86_64 dir
|
- name: Run createrepo on the x86_64 dir
|
||||||
command: createrepo --update ${repodir}/x86_64/
|
command: createrepo --update {{ repodir }}/x86_64/
|
||||||
|
|
||||||
- name: move processed rpms out to ${rpmdir}-old
|
- name: move processed rpms out to {{ rpmdir }}-old
|
||||||
command: /bin/mv ${item} ${rpmdir}-old/
|
command: /bin/mv {{ item }} {{ rpmdir }}-old/
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ rpmdir }}/*.rpm"
|
- "{{ rpmdir }}/*.rpm"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue