小编Ayr*_*yra的帖子

gitlab docker在几秒钟后停止,因为他再也无法到达postgres了

所以我在一个月前使用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)

事情是我添加了规则允许任何原型到这个端口,它在一个月前工作.

有任何想法吗 ?

connection gitlab ansible docker

9
推荐指数
1
解决办法
115
查看次数

ansible debconf 模块无法正常工作以设置默认区域设置

- 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 …

locale ansible

5
推荐指数
1
解决办法
1905
查看次数

标签 统计

ansible ×2

connection ×1

docker ×1

gitlab ×1

locale ×1