Change from tag to variable first_run

This commit is contained in:
Alexander Grothe 2018-01-07 18:45:01 +01:00
parent e1b17e00aa
commit 7f8f5b8290
6 changed files with 448 additions and 413 deletions

File diff suppressed because it is too large Load Diff

View File

@ -154,7 +154,7 @@ apt-get update
apt-get -y install --no-install-recommends ansible apt-get -y install --no-install-recommends ansible
# TODO: run ansible on local host # TODO: run ansible on local host
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=true"
#+END_SRC #+END_SRC
* Playbooks * Playbooks
** yavdr07.yml ** yavdr07.yml
@ -571,6 +571,11 @@ APT::Install-Recommends "0";
APT::Install-Suggests "0"; APT::Install-Suggests "0";
#+END_SRC #+END_SRC
** collect facts about the system with custom modules ** collect facts about the system with custom modules
*** variables
#+BEGIN_SRC yaml :tangle roles/collect-facts/defaults/main.yml :mkdirp yes
first_run: false
#+END_SRC
*** tasks *** tasks
***** main.yml ***** main.yml
#+BEGIN_SRC yaml :tangle roles/collect-facts/tasks/main.yml :mkdirp yes #+BEGIN_SRC yaml :tangle roles/collect-facts/tasks/main.yml :mkdirp yes
@ -1679,6 +1684,9 @@ HDMI-0 connected 1280x1024+0+0 (0x1c9) normal (normal left inverted right x axis
b'\xde\xad\xbe\xef' b'\xde\xad\xbe\xef'
#+END_SRC #+END_SRC
*** default variables *** default variables
#+BEGIN_SRC yaml :tangle roles/yavdr-xorg/defaults/main.yml :mkdirp yes :padline no
first_run: false
#+END_SRC
*** tasks *** tasks
**** main.yml **** main.yml
@ -1849,7 +1857,7 @@ b'\xde\xad\xbe\xef'
state: stopped state: stopped
enabled: false enabled: false
masked: true masked: true
tags: first_run when: first_run
- name: "wait a little bit, so X has some time to shut down (needed?)" - name: "wait a little bit, so X has some time to shut down (needed?)"
wait_for: wait_for:

View File

@ -13,4 +13,4 @@ apt-get update
apt-get -y install --no-install-recommends ansible apt-get -y install --no-install-recommends ansible
# TODO: run ansible on local host # TODO: run ansible on local host
ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags="all" --extra-vars "first_run=true"

View File

@ -0,0 +1 @@
first_run: false

View File

@ -0,0 +1 @@
first_run: false

View File

@ -53,7 +53,7 @@
state: stopped state: stopped
enabled: false enabled: false
masked: true masked: true
tags: first_run when: first_run
- name: "wait a little bit, so X has some time to shut down (needed?)" - name: "wait a little bit, so X has some time to shut down (needed?)"
wait_for: wait_for: