46 lines
763 B
JSON
46 lines
763 B
JSON
[
|
|
{
|
|
"name": "prerequisites",
|
|
"become": true,
|
|
"ansible.builtin.apt": {
|
|
"pkg": [
|
|
"curl",
|
|
"ca-certificates",
|
|
"apt-transport-https",
|
|
"gnupg2"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "install script",
|
|
"become": true,
|
|
"ansible.builtin.shell": {
|
|
"cmd": "curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash"
|
|
}
|
|
},
|
|
{
|
|
"name": "package installation",
|
|
"become": true,
|
|
"ansible.builtin.apt": {
|
|
"pkg": [
|
|
"gitlab-ce"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "configuration",
|
|
"become": true,
|
|
"ansible.builtin.template": {
|
|
"src": "gitlab.rb.j2",
|
|
"dest": "/etc/gitlab/gitlab.rb"
|
|
}
|
|
},
|
|
{
|
|
"name": "setup",
|
|
"become": true,
|
|
"ansible.builtin.command": {
|
|
"cmd": "gitlab-ctl reconfigure"
|
|
}
|
|
}
|
|
]
|
|
|