Add block for repeated start of xorg-verbose@vt7.service

This commit is contained in:
Alexander Grothe 2018-01-07 17:40:29 +01:00
parent af3ef457b6
commit c36056561f
4 changed files with 484 additions and 475 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"
#+END_SRC #+END_SRC
* Playbooks * Playbooks
** yavdr07.yml ** yavdr07.yml
@ -1821,28 +1821,31 @@ b'\xde\xad\xbe\xef'
name: x@vt7.service name: x@vt7.service
state: stopped state: stopped
- name: "wait a little bit before starting x-verbose@vt7.service (needed?)" - name: Workaround for wrong connector names on first run
wait_for: block:
timeout: 10 - name: "wait a little bit before starting x-verbose@vt7.service (needed?)"
wait_for:
- name: "start x-verbose@.service" timeout: 10
systemd:
name: "x-verbose@vt7.service" - name: "start x-verbose@.service"
state: started systemd:
enabled: false name: "x-verbose@vt7.service"
masked: false state: started
daemon_reload: true enabled: false
masked: false
- name: "wait a little bit, so X has some time to start up (needed?)" daemon_reload: true
wait_for:
timeout: 3 - name: "wait a little bit, so X has some time to start up (needed?)"
wait_for:
- name: "stop x-verbose@vt7.service" timeout: 3
systemd:
name: "x-verbose@vt7.service" - name: "stop x-verbose@vt7.service"
state: stopped systemd:
enabled: false name: "x-verbose@vt7.service"
masked: true state: stopped
enabled: false
masked: true
tags: 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"

View File

@ -28,28 +28,31 @@
name: x@vt7.service name: x@vt7.service
state: stopped state: stopped
- name: "wait a little bit before starting x-verbose@vt7.service (needed?)" - name: Workaround for wrong connector names on first run
wait_for: block:
timeout: 10 - name: "wait a little bit before starting x-verbose@vt7.service (needed?)"
wait_for:
- name: "start x-verbose@.service" timeout: 10
systemd:
name: "x-verbose@vt7.service" - name: "start x-verbose@.service"
state: started systemd:
enabled: false name: "x-verbose@vt7.service"
masked: false state: started
daemon_reload: true enabled: false
masked: false
- name: "wait a little bit, so X has some time to start up (needed?)" daemon_reload: true
wait_for:
timeout: 3 - name: "wait a little bit, so X has some time to start up (needed?)"
wait_for:
- name: "stop x-verbose@vt7.service" timeout: 3
systemd:
name: "x-verbose@vt7.service" - name: "stop x-verbose@vt7.service"
state: stopped systemd:
enabled: false name: "x-verbose@vt7.service"
masked: true state: stopped
enabled: false
masked: true
tags: 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: