Skip to content

Instantly share code, notes, and snippets.

@TuranTimur
Last active December 10, 2015 14:48
Show Gist options
  • Save TuranTimur/253c99c08d0e126a66c3 to your computer and use it in GitHub Desktop.
Save TuranTimur/253c99c08d0e126a66c3 to your computer and use it in GitHub Desktop.
- name: create repo file of myrepository
ini_file: dest=/etc/yum.repos.d/myrepository.repo
section="{{ item.section }}"
option="{{ item.option }}"
value="{{ item.value }}"
with_items:
- { section: 'myrepository', option: 'name', value: 'myrepository_repo'}
- { section: 'myrepository', option: 'baseurl', value: 'http://xxx.xxx.xxx.xxx/'}
- { section: 'myrepository', option: 'enabled', value: '1'}
- { section: 'myrepository', option: 'gpgcheck', value: '0'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment