所以我在一个月前使用Ansible并创建了gitlab角色.它工作得很好.我现在正在尝试再次使用它(如果我理解的话,它使用最新版本的gitlab)但是它会在我启动它时停止docker因为:
PG::ConnectionBad: could not connect to server: Connection refused
Is the server running on host "postgres" (172.18.0.3) and accepting TCP/IP connections on port 5432.
Run Code Online (Sandbox Code Playgroud)
事情是我添加了规则允许任何原型到这个端口,它在一个月前工作.
有任何想法吗 ?
- name: Generate required locales
locale_gen:
name: "{{ item }}"
state: present
with_items:
- "fr_FR"
- "fr_FR.UTF-8"
- "fr_FR@euro"
become: yes
- name: rebuild locales database
command: "{{ item }}"
with_items:
- dpkg-reconfigure locales -f noninteractive
- /usr/sbin/locale-gen
become: yes
- name: Set defaultt locale to fr_FR.UTF-8
debconf:
name: locales
question: locales/default_environment_locale
value: fr_FR.UTF-8
vtype: select
become: yes
- name: rebuild locales database3
command: "{{ item }}"
with_items:
- dpkg-reconfigure locales -f noninteractive
- /usr/sbin/locale-gen
become: yes
Run Code Online (Sandbox Code Playgroud)
2 个第一个任务运行良好(如果我这样做: sudo …