Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
43
Issues
43
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
bcb50352
Commit
bcb50352
authored
Jan 14, 2019
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix int issue
parent
2008b3de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
roles/clients/tasks/cups.yml
roles/clients/tasks/cups.yml
+1
-4
roles/common/tasks/etckeeper.yml
roles/common/tasks/etckeeper.yml
+2
-2
roles/common/tasks/sshd.yml
roles/common/tasks/sshd.yml
+2
-2
sites.yml
sites.yml
+1
-1
No files found.
roles/clients/tasks/cups.yml
View file @
bcb50352
...
...
@@ -9,11 +9,8 @@
-
name
:
install dependencies
become
:
yes
dnf
:
name
:
"
{{
item
}}"
name
:
[
"
hplip-common"
,
"
hplip"
]
state
:
present
with_items
:
-
"
hplip-common"
-
"
hplip"
when
:
ansible_distribution == 'Fedora'
-
name
:
install CUPS
...
...
roles/common/tasks/etckeeper.yml
View file @
bcb50352
...
...
@@ -20,7 +20,7 @@
line
:
"
HIGHLEVEL_PACKAGE_MANAGER=dnf"
regexp
:
"
HIGHLEVEL_PACKAGE_MANAGER=.*"
backup
:
yes
when
:
(ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) >=
"18"
)
when
:
(ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) >=
18
)
-
name
:
yum as package manager
become
:
yes
...
...
@@ -29,7 +29,7 @@
line
:
"
HIGHLEVEL_PACKAGE_MANAGER=yum"
regexp
:
"
HIGHLEVEL_PACKAGE_MANAGER=.*"
backup
:
yes
when
:
(ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) <=
"7"
)
when
:
(ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) <=
7
)
-
name
:
apt as package manager
lineinfile
:
...
...
roles/common/tasks/sshd.yml
View file @
bcb50352
...
...
@@ -10,8 +10,8 @@
package
:
name
:
python-firewall
state
:
present
when
:
((ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) < 28)
)
or
(ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) >= 7))
)
when
:
((ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) < 28) or
(ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) >= 7))
-
name
:
Warn about firewalld not working
debug
:
...
...
sites.yml
View file @
bcb50352
---
-
vars
:
ansible_python_interpreter
:
"
/usr/bin/env
python3"
when
:
(ansible_distribution == 'Fedora' and
ansible_distribution_version
>= 28)
when
:
(ansible_distribution == 'Fedora' and
(ansible_distribution_version|int)
>= 28)
-
import_playbook
:
common.yml
-
import_playbook
:
clients.yml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment