shell - Can not change gnome-terminal to solarized by running script with ansible playbook -
i'm writing roles setting virtual machine using ansible.
i'm trying set gnome-terminal color theme solarized https://github.com/anthony25/gnome-terminal-colors-solarized
i can run script terminal , color changes immediately
$ ~/solarized/gnome-terminal-colors-solarized/install.sh -s dark -p default
but when run ansible:
- name: set solarized color default profile script: /home/someuser/solarized/gnome-terminal-colors-solarized/install.sh -s dark -p default
the result ok
task: [solarized | set solarized color default profile] *********************** changed: [localhost]
but nothing changed! check config file @ ~/.gconf/apps/gnome-terminal/profiles/default/ , did not change well
i tried shell, command still same result.
i tried run
install.sh -s lkefjefj -p lefjelkfj
and throws errors, reads arguments
the script run sudo option.
so not understand why not working?
i found problem. script run in ansible root user when declare "sudo: yes" in main playbook. when supplied "sudo_user: my_user" run correctly
Comments
Post a Comment