New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show color on GitLab CI ? #24

Closed
chusiang opened this Issue Jul 7, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@chusiang
Member

chusiang commented Jul 7, 2017

  1. I want to use color mode to play the ansible playbooks on GitLab CI, but default is not.

    https://gitlab.com/chusiang/helloworld.ansible.role/-/jobs/21539273

    Run the Ansible with GitLab CI (no color)

  2. I find the force_color configure, when we set to 1, it could be use the color mode.

    $ vim ansible.cfg
    [defaults]
    
    force_color = 1
  3. Done.

    https://gitlab.com/chusiang/helloworld.ansible.role/-/jobs/21538921

    screen shot 2017-07-08 at 00 16 32

Enjoy it !

Reference

  • 《Ansible: Up and Running》by Lorin Hochstein

chusiang
2017.07.08

@chusiang chusiang self-assigned this Jul 7, 2017

@chusiang

This comment has been minimized.

Show comment
Hide comment
@chusiang

chusiang Jul 7, 2017

Member

無心插柳柳成陰,隨意翻翻《Ansible: Up and Running》一書,卻不小心解了敝人多時的疑惑。 😝

Member

chusiang commented Jul 7, 2017

無心插柳柳成陰,隨意翻翻《Ansible: Up and Running》一書,卻不小心解了敝人多時的疑惑。 😝

@chusiang chusiang closed this Jul 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment