Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query droplet status via DO instead of cloud-init
- Loading branch information
Showing
1 changed file
with
24 additions
and
27 deletions.
There are no files selected for viewing
51 changes: 24 additions & 27 deletions
51
automated_builder/roles/common/tasks/install_dependencies.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
--- | ||
- name: Install dependencies | ||
become: true | ||
block: | ||
- name: Check droplet status | ||
community.digitalocean.digital_ocean_droplet_info: | ||
oauth_token: "{{ DO_API_TOKEN }}" | ||
name: automated-builder-vps | ||
register: droplet_facts | ||
|
||
- name: Debug droplet_facts | ||
debug: | ||
var: droplet_facts | ||
- name: Check droplet status | ||
retries: 10 | ||
delay: 20 | ||
community.digitalocean.digital_ocean_droplet_info: | ||
oauth_token: "{{ DO_API_TOKEN }}" | ||
name: automated-builder-vps | ||
register: droplet_facts | ||
until: droplet_facts.data.status == "active" | ||
|
||
- name: Install apt packages | ||
apt: | ||
pkg: | ||
- git | ||
- time | ||
- curl | ||
- lsof | ||
- apt-cacher-ng | ||
- lsb-release | ||
- fakeroot | ||
- dpkg-dev | ||
- fasttrack-archive-keyring | ||
- dnsutils | ||
- software-properties-common | ||
update_cache: true | ||
- name: Install apt packages | ||
become: true | ||
apt: | ||
pkg: | ||
- git | ||
- time | ||
- curl | ||
- lsof | ||
- apt-cacher-ng | ||
- lsb-release | ||
- fakeroot | ||
- dpkg-dev | ||
- fasttrack-archive-keyring | ||
- dnsutils | ||
- software-properties-common | ||
update_cache: true |