Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
9cce46ea
Unverified
Commit
9cce46ea
authored
5 years ago
by
aharrisson
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix idempotence issue in bootstrap-os (#5916)
parent
2e672894
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/bootstrap-os/molecule/default/molecule.yml
+0
-14
0 additions, 14 deletions
roles/bootstrap-os/molecule/default/molecule.yml
roles/bootstrap-os/tasks/bootstrap-debian.yml
+13
-0
13 additions, 0 deletions
roles/bootstrap-os/tasks/bootstrap-debian.yml
with
13 additions
and
14 deletions
roles/bootstrap-os/molecule/default/molecule.yml
+
0
−
14
View file @
9cce46ea
---
scenario
:
name
:
default
test_sequence
:
-
lint
-
destroy
-
dependency
-
syntax
-
create
-
prepare
-
converge
# - idempotence # skip
-
side_effect
-
verify
-
destroy
dependency
:
name
:
galaxy
lint
:
...
...
This diff is collapsed.
Click to expand it.
roles/bootstrap-os/tasks/bootstrap-debian.yml
+
13
−
0
View file @
9cce46ea
...
...
@@ -50,12 +50,24 @@
-
https_proxy is defined
-
need_https_proxy.rc !=
0
-
name
:
Check Network Name Resolution configuration
raw
:
grep '^DNSSEC=allow-downgrade' /etc/systemd/resolved.conf
register
:
need_dnssec_allow_downgrade
failed_when
:
false
changed_when
:
false
# This command should always run, even in check mode
check_mode
:
false
environment
:
{}
when
:
-
'
"bionic"
in
os_release.stdout'
-
name
:
Change Network Name Resolution configuration
raw
:
sed -i 's/^DNSSEC=yes/DNSSEC=allow-downgrade/g' /etc/systemd/resolved.conf
become
:
true
environment
:
{}
when
:
-
'
"bionic"
in
os_release.stdout'
-
need_dnssec_allow_downgrade.rc
-
name
:
Restart systemd-resolved service
raw
:
systemctl restart systemd-resolved
...
...
@@ -63,6 +75,7 @@
environment
:
{}
when
:
-
'
"bionic"
in
os_release.stdout'
-
need_dnssec_allow_downgrade.rc
-
name
:
Install python
raw
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment