Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable gpg-check on all yum-repositories #5

Merged
merged 2 commits into from
May 20, 2015
Merged

Enable gpg-check on all yum-repositories #5

merged 2 commits into from
May 20, 2015

Conversation

rndmh3ro
Copy link
Member

No description provided.

@@ -20,6 +20,21 @@
- '/bin'
- '{{os_env_extra_user_paths}}'

- name: activate gpg-check for yum-repos in yum.conf
lineinfile: dest='/etc/yum.conf' regexp='^gpgcheck=0' line='gpgcheck=1' backrefs=yes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this may not work with indent. I think we may need to add a whitespace ^\s*gpgcheck=0

@rndmh3ro
Copy link
Member Author

The lineinfile-module only edits the last occurence of a string in a file, so we actually have to use the shell-module with a simple sed-command here.

@chris-rock
Copy link
Member

amazing, this looks much better. thanks @rndmh3ro

chris-rock added a commit that referenced this pull request May 20, 2015
Enable gpg-check on all yum-repositories
@chris-rock chris-rock merged commit 01572d9 into master May 20, 2015
@chris-rock chris-rock deleted the yum branch May 20, 2015 19:17
rndmh3ro pushed a commit that referenced this pull request Jul 24, 2020
rndmh3ro pushed a commit that referenced this pull request Jul 24, 2020
fix mysql restart not happening because of missing os specific variable
rndmh3ro pushed a commit that referenced this pull request Jul 24, 2020
create dhparam file. fix #4
rndmh3ro added a commit that referenced this pull request Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants