Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Needs two runs to complete the script #23

Open
zkdavis opened this issue Aug 1, 2022 · 0 comments
Open

Needs two runs to complete the script #23

zkdavis opened this issue Aug 1, 2022 · 0 comments

Comments

@zkdavis
Copy link

zkdavis commented Aug 1, 2022

Some disclaimers before I continue this:

I've been heavily editing the code for my own purposes and the bug may not show up, but I did try to make sure it appeared in the original.

Essentially the code breaks down at "Stop and remove all the disabled containers" inside the docker role. This seems to be because the docker user isn't set up yet even though the user is added to the docker group above.

I found two fixes to this but there may be better ways about this.

  1. change become to yes for all subsequent docker tasks.
  2. perform a reboot before this step
    -- here I ran into several issues:
    the default reboot in ansible will try to reconnect via the original port 22. So if you change your ssh port this task will infinitely hang.
    --to get around this: I essentially made another port jungle with a reboot delay. I tried to set the ansible_port before reboot, but this causes errors, so I went with a more brute force solution and left it at that.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant