Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ics-ans-role-autoinstall
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ics-ansible-galaxy
ics-ans-role-autoinstall
Commits
c5a75f25
Commit
c5a75f25
authored
6 years ago
by
Stephane Armanet
Browse files
Options
Downloads
Patches
Plain Diff
remove tag_cleanup filter
parent
d3fc3765
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Initial commit
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
filter_plugins/tags_cleanup.py
+0
-22
0 additions, 22 deletions
filter_plugins/tags_cleanup.py
handlers/main.yml
+1
-1
1 addition, 1 deletion
handlers/main.yml
tasks/install_component.yml
+2
-5
2 additions, 5 deletions
tasks/install_component.yml
tasks/setup-pxe.yml
+7
-12
7 additions, 12 deletions
tasks/setup-pxe.yml
with
10 additions
and
40 deletions
filter_plugins/tags_cleanup.py
deleted
100644 → 0
+
0
−
22
View file @
d3fc3765
class
FilterModule
(
object
):
def
filters
(
self
):
return
{
'
tags_cleanup
'
:
self
.
tags_cleanup
}
def
tags_cleanup
(
self
,
tags
):
deploy_tags
=
[
"
LCR
"
,
"
IOC
"
,
"
Server
"
,
"
autoinstallTag1
"
]
return_tag
=
[]
if
not
tags
:
tags
=
[
"
default
"
]
else
:
for
t
in
tags
:
if
t
in
deploy_tags
:
return_tag
.
append
(
t
)
else
:
return_tag
.
append
(
"
default
"
)
tags
=
return_tag
return
tags
[
0
]
This diff is collapsed.
Click to expand it.
handlers/main.yml
+
1
−
1
View file @
c5a75f25
...
@@ -3,4 +3,4 @@
...
@@ -3,4 +3,4 @@
service
:
service
:
name
:
nginx
name
:
nginx
enabled
:
true
enabled
:
true
state
:
started
state
:
re
started
This diff is collapsed.
Click to expand it.
tasks/install_component.yml
+
2
−
5
View file @
c5a75f25
...
@@ -2,15 +2,14 @@
...
@@ -2,15 +2,14 @@
-
name
:
install atftp server
-
name
:
install atftp server
yum
:
yum
:
name
:
"
atftp-server"
name
:
"
atftp-server"
state
:
lates
t
state
:
presen
t
tags
:
tags
:
-
install
-
install
-
name
:
install xinetd
-
name
:
install xinetd
yum
:
yum
:
name
:
"
xinetd.x86_64"
name
:
"
xinetd.x86_64"
state
:
latest
state
:
present
register
:
tftp_installed
tags
:
tags
:
-
install
-
install
...
@@ -18,7 +17,6 @@
...
@@ -18,7 +17,6 @@
file
:
file
:
path
:
"
{{
tftp_root
}}"
path
:
"
{{
tftp_root
}}"
state
:
directory
state
:
directory
when
:
tftp_installed
-
name
:
configure tftp
-
name
:
configure tftp
template
:
template
:
...
@@ -27,7 +25,6 @@
...
@@ -27,7 +25,6 @@
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
0644
mode
:
0644
when
:
tftp_installed
-
name
:
start xinetd
-
name
:
start xinetd
service
:
service
:
...
...
This diff is collapsed.
Click to expand it.
tasks/setup-pxe.yml
+
7
−
12
View file @
c5a75f25
---
---
-
name
:
create
grub EFI
folder
-
name
:
create
boot
folder
s
file
:
file
:
path
:
"
{{
tftp_root
}}/EFI"
path
:
"
{{
tftp_root
}}/{{
item
}}"
state
:
directory
-
name
:
create BIOS config folder
file
:
path
:
"
{{
tftp_root
}}/boot"
state
:
directory
-
name
:
create BIOS menu folder
file
:
path
:
"
{{
tftp_root
}}/grub-menu"
state
:
directory
state
:
directory
whit_items
:
-
EFI
-
boot
-
grub-menu
-
name
:
copy GRUB BIOS loader
-
name
:
copy GRUB BIOS loader
copy
:
copy
:
...
@@ -89,6 +83,7 @@
...
@@ -89,6 +83,7 @@
get_url
:
get_url
:
url
:
"
{{
isolinux_kernel_url
}}/{{
item
}}"
url
:
"
{{
isolinux_kernel_url
}}/{{
item
}}"
dest
:
"
{{
pxe_kernel_path
}}/{{
item
}}"
dest
:
"
{{
pxe_kernel_path
}}/{{
item
}}"
force
:
true
with_items
:
with_items
:
-
vmlinuz
-
vmlinuz
-
initrd.img
-
initrd.img
...
...
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