diff --git a/destroy_containers.yml b/destroy_containers.yml index 5f5718b3..ffabc760 100644 --- a/destroy_containers.yml +++ b/destroy_containers.yml @@ -14,8 +14,10 @@ # limitations under the License. - name: Playbook for destroying test containers hosts: all_containers + serial: 1 become: true gather_facts: false + connection: local tasks: - name: Destroy a container lxc_container: diff --git a/test-prepare-containers.yml b/test-prepare-containers.yml index 42861ff0..25e1bd82 100644 --- a/test-prepare-containers.yml +++ b/test-prepare-containers.yml @@ -13,10 +13,17 @@ # See the License for the specific language governing permissions and # limitations under the License. +- name: Playbook for creating containers + hosts: localhost + become: true + gather_facts: true + - include: destroy_containers.yml when: destroy_first | default(True) | bool + - name: Playbook for creating containers hosts: all_containers + serial: 1 become: true gather_facts: false roles: