Skip to content

Commit

Permalink
base
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed Jun 17, 2024
1 parent a4fa77e commit 8e72dae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
# defaults file for bootstrap

# Do you want to wait for the host to be available?
bootstrap_wait_for_host: no
bootstrap_wait_for_host: false

# The number of seconds you want to wait during connection test before failing.
bootstrap_timeout: 3

# Set role to use "become" or not.
bootstrap_become: yes
# Tell the role to "become" or not.
bootstrap_become: true
2 changes: 1 addition & 1 deletion meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ argument_specs:
options:
bootstrap_wait_for_host:
type: "bool"
default: no
default: false
description: "Wait for the machine to be available."
bootstrap_timeout:
type: "int"
Expand Down
8 changes: 4 additions & 4 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
hosts: all
# This role installs packages using the `raw` module and needs to connect as
# `root`. (`sudo` is not available before bootstrapping.) All tasks in the
# role have `become` set to `no`, so you can use either `no` or `yes` for
# `become`, the role will not use become (so `sudo`) for any task.
become: yes # `no` will also work.
# role have `become` set to `false`, so you can use either `false` or `true`
# for `become`, the role will not use become (so `sudo`) for any task.
become: true # `false` will also work.
# This role installs python, gathering facts can't be done before `python` is
# installed. This role runs the `setup` module, so facts will be available
# after running the role.
gather_facts: no
gather_facts: false

roles:
- role: ansible-role-bootstrap
4 changes: 2 additions & 2 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
- name: Verify
hosts: all
become: no
gather_facts: no
become: false
gather_facts: false

tasks:
- name: Test connection
Expand Down

0 comments on commit 8e72dae

Please sign in to comment.