Created
March 8, 2022 12:53
-
-
Save amaurybsouza/0a7b34b2b4c6f19dd8f57e3a11cd11f8 to your computer and use it in GitHub Desktop.
provisioning_gitLab.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: my playbook | |
hosts: all | |
become: true | |
remote_user: ubuntu | |
gather_facts: false | |
tasks: | |
- name: Update all packages to their latest version | |
apt: | |
upgrade: yes | |
update_cache: yes | |
cache_valid_time: 86400 | |
- name: Set Postfix options | |
debconf: | |
name=postifx | |
question="postfix/mailname" | |
value="sandbox" | |
vtype="string" | |
- name: Set Postfix options like internet site | |
debconf: | |
name=postfix | |
question="postfix/main_mailer_type" | |
value="'Internet Site'" | |
vtype="string" | |
- name: Set GitLab CE repository | |
shell: | |
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash | |
- name: Install some required packages | |
apt: | |
pkg: | |
- curl | |
- openssh-server | |
- ca-certificates | |
- tzdata | |
- perl | |
- postfix | |
- gitlab-ce | |
update_cache: yes | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment