Heat the oil in a heavy pot and stir in the flour gradually. Cook it until it turns medium brown in color. Then, lowering the heat, add the garlic, celery, green onions, and onion, and keep cooking for about 10 minutes, stirring all the time. Next, add the thyme, bay leaves, cayenne, pepper, and salt, and mix them all.